From 85a4868f7123ec20f11f94e25d74653209103327 Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Tue, 29 Apr 2008 23:55:55 +0000 Subject: [PATCH] Future proofing, make sure we get the screen this window is in. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25267 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mediaplayer/MainWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index 5c3626effe..fc852b62b0 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -660,7 +660,7 @@ void MainWin::WindowActivated(bool active) { if (active) { - BScreen screen; + BScreen screen(this); BRect screenFrame = screen.Frame(); BRect frame = Frame(); float diffX = 0.0;