From dcddeb4c1c988c532fd5443c482fe55dc44173a2 Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Thu, 11 Sep 2008 23:09:45 +0000 Subject: [PATCH] * Bug #264 appeared again after I removed the disabled programmatically resize during user resize. Obviously we ported the bug over from BeOS, during the FrameResized call the preferred size of the window was calculated based on the current size of the window, calculating the same size FrameResized reported. Thus resulting in trying to resize it to the same size ending in an loop. It seems they worked arround the oversight using the outline resize thing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27426 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/magnify/Magnify.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/apps/magnify/Magnify.cpp b/src/apps/magnify/Magnify.cpp index 8e7bbcb21c..200b4daffa 100644 --- a/src/apps/magnify/Magnify.cpp +++ b/src/apps/magnify/Magnify.cpp @@ -515,12 +515,6 @@ void TWindow::FrameResized(float w, float h) { CalcViewablePixels(); - - float width; - float height; - GetPreferredSize(&width, &height); - ResizeTo(width, height); - fFatBits->InitBuffers(fHPixelCount, fVPixelCount, fPixelSize, ShowGrid()); }