Author: cazfi
Date: Sat Oct 29 09:27:06 2016
New Revision: 34285

URL: http://svn.gna.org/viewcvs/freeciv?rev=34285&view=rev
Log:
Dummified gtk3.22-client screen_width() and screen_height()

See patch #7877

Modified:
    trunk/client/gui-gtk-3.22/gui_main.c

Modified: trunk/client/gui-gtk-3.22/gui_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.22/gui_main.c?rev=34285&r1=34284&r2=34285&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.22/gui_main.c        (original)
+++ trunk/client/gui-gtk-3.22/gui_main.c        Sat Oct 29 09:27:06 2016
@@ -2338,19 +2338,11 @@
 **************************************************************************/
 int screen_width(void)
 {
-  GdkScreen *screen;
-
   if (vmode.width > 0) {
     return vmode.width;
   }
 
-  screen = gdk_screen_get_default();
-
-  if (screen == NULL) {
-    return 0;
-  }
-
-  return gdk_screen_get_width(screen);
+  return 0;
 }
 
 /**************************************************************************
@@ -2358,19 +2350,11 @@
 **************************************************************************/
 int screen_height(void)
 {
-  GdkScreen *screen;
-
   if (vmode.height > 0) {
     return vmode.height;
   }
 
-  screen = gdk_screen_get_default();
-
-  if (screen == NULL) {
-    return 0;
-  }
-
-  return gdk_screen_get_height(screen);
+  return 0;
 }
 
 /**************************************************************************


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to