From 51a2d41103b504c5d99a5f6657a942b9e8572fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 10 Nov 2005 22:15:11 +0000 Subject: [PATCH] Made the code a bit nicer by following Stefano's and Stephan's suggestion. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14840 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/fonts/MainWindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/preferences/fonts/MainWindow.cpp b/src/preferences/fonts/MainWindow.cpp index 03191a3955..c9b52ed041 100644 --- a/src/preferences/fonts/MainWindow.cpp +++ b/src/preferences/fonts/MainWindow.cpp @@ -91,10 +91,7 @@ MainWindow::MainWindow() // make sure window is on screen BScreen screen(this); - if (Frame().left > screen.Frame().right - 10 - || Frame().top > screen.Frame().bottom - 10 - || Frame().right < screen.Frame().left + 10 - || Frame().bottom < screen.Frame().top + 10) + if (!screen.Frame().InsetByCopy(10, 10).Intersects(Frame())) _Center(); }