X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..cc4d5638c66a409e421420ed7110917755a66788:/src/common/dpycmn.cpp?ds=sidebyside diff --git a/src/common/dpycmn.cpp b/src/common/dpycmn.cpp index 57a5219095..1556d5784c 100644 --- a/src/common/dpycmn.cpp +++ b/src/common/dpycmn.cpp @@ -4,9 +4,8 @@ // Author: Vadim Zeitlin // Modified by: // Created: 01.03.03 -// RCS-ID: $Id$ // Copyright: (c) 2003-2006 Vadim Zeitlin -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -234,7 +233,7 @@ bool wxDisplay::ChangeMode(const wxVideoMode& mode) int wxDisplayFactory::GetFromWindow(const wxWindow *window) { // consider that the window belongs to the display containing its centre - const wxRect r(window->GetRect()); + const wxRect r(window->GetScreenRect()); return GetFromPoint(wxPoint(r.x + r.width/2, r.y + r.height/2)); }