misc.cpp patch - Mailing list pgadmin-hackers

From Adam H. Pendleton
Subject misc.cpp patch
Date
Msg-id 3ECA4D26.5090602@fmonkey.net
Whole thread Raw
List pgadmin-hackers
Attached is a patch against the CVS tree to fix the screen size issue on
Mac.

ahp
diff -urN pgadmin3/src/utils/misc.cpp pgadmin3.new/src/utils/misc.cpp
--- pgadmin3/src/utils/misc.cpp    2003-05-20 05:53:06.000000000 -0400
+++ pgadmin3.new/src/utils/misc.cpp    2003-05-20 11:39:07.000000000 -0400
@@ -171,8 +171,9 @@

 void CheckOnScreen(wxPoint &pos, wxSize &size, const int w0, const int h0)
 {
-    int scrW=wxSystemSettings::GetMetric(wxSYS_SCREEN_X);
-    int scrH=wxSystemSettings::GetMetric(wxSYS_SCREEN_Y);
+    wxSize screenSize = wxGetDisplaySize();
+    int scrW = screenSize.x;
+    int scrH = screenSize.y;

     if (pos.x < 0)
         pos.x = 0;

pgadmin-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: UTF-8 support
Next
From: "Adam H. Pendleton"
Date:
Subject: frmMain.cpp patch