Style fix in BAlert, some sort of strange spaces got in there
This commit is contained in:
@@ -406,9 +406,9 @@ BAlert::AlertPosition(float width, float height)
|
|||||||
dynamic_cast<BWindow*>(BLooper::LooperForThread(find_thread(NULL)));
|
dynamic_cast<BWindow*>(BLooper::LooperForThread(find_thread(NULL)));
|
||||||
|
|
||||||
BScreen screen(window);
|
BScreen screen(window);
|
||||||
BRect screenFrame(0, 0, 640, 480);
|
BRect screenFrame(0, 0, 640, 480);
|
||||||
if (screen.IsValid())
|
if (screen.IsValid())
|
||||||
screenFrame = screen.Frame();
|
screenFrame = screen.Frame();
|
||||||
|
|
||||||
// Horizontally, we're smack in the middle
|
// Horizontally, we're smack in the middle
|
||||||
result.x = screenFrame.left + (screenFrame.Width() / 2.0) - (width / 2.0);
|
result.x = screenFrame.left + (screenFrame.Width() / 2.0) - (width / 2.0);
|
||||||
|
|||||||
Reference in New Issue
Block a user