Thread: misc.cpp patch

misc.cpp patch

From
"Adam H. Pendleton"
Date:
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;

Re: misc.cpp patch

From
"Dave Page"
Date:
Thanks, applied.

> -----Original Message-----
> From: Adam H. Pendleton [mailto:fmonkey@fmonkey.net]
> Sent: 20 May 2003 16:44
> To: pgadmin-hackers@postgresql.org
> Subject: [pgadmin-hackers] misc.cpp patch
>
>
> Attached is a patch against the CVS tree to fix the screen
> size issue on
> Mac.
>
> ahp
>