diff --git a/src/kits/interface/Alert.cpp b/src/kits/interface/Alert.cpp index db1e05a19b..bf418c65a1 100644 --- a/src/kits/interface/Alert.cpp +++ b/src/kits/interface/Alert.cpp @@ -428,15 +428,15 @@ BAlert::AlertPosition(float width, float height) dynamic_cast(BLooper::LooperForThread(find_thread(NULL))); BScreen screen(window); - BRect screenRect(0, 0, 640, 480); + BRect screenFrame(0, 0, 640, 480); if (screen.IsValid()) - screenRect = screen.Frame(); + screenFrame = screen.Frame(); // Horizontally, we're smack in the middle - result.x = (screenRect.Width() / 2.0) - (width / 2.0); + result.x = screenFrame.left + (screenFrame.Width() / 2.0) - (width / 2.0); // This is probably sooo wrong, but it looks right on 1024 x 768 - result.y = (screenRect.Height() / 4.0) - ceil(height / 3.0); + result.y = screenFrame.top + (screenFrame.Height() / 4.0) - ceil(height / 3.0); return result; }