]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dpycmn.cpp
Set the correct svn properties on the new files. Correct a minor date typo.
[wxWidgets.git] / src / common / dpycmn.cpp
index 868407c041395fd1e23c4ef7f849b019476eb0d1..0087b7d09f6c9a1770163ca7d698cccc3b1f357a 100644 (file)
@@ -234,7 +234,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));
 }