]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/displayx11.cpp
don't allocate system fonts/colours dynamically
[wxWidgets.git] / src / unix / displayx11.cpp
index aae589676962911d83c7b6d03a6adf1e4048164c..20cd747e13dc594a037b395968f3970a05733e08 100644 (file)
@@ -92,7 +92,16 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p)
   }
   else
   {
-    return 0;
+    wxSize size = wxGetDisplaySize();
+    if (p.x >= 0 &&
+        p.x <= size.GetWidth() && 
+        p.y > 0 &&
+        p.y <= size.GetHeight())
+    {
+        return 0;
+    }
+
+    return -1
   }
 }
 
@@ -135,7 +144,7 @@ int wxDisplay::GetDepth() const
 
 wxString wxDisplay::GetName() const
 {
-  return "";
+  return wxEmptyString;
 }
 
 #endif /* wxUSE_DISPLAY */