summaryrefslogtreecommitdiff
path: root/math/scilab/files/patch-routines__gtksci__x_main.c
blob: 57337e3712562370051d0ca9e7683183dc94200d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- ./routines/gtksci/x_main.c.orig	Tue Mar 21 19:50:48 2006
+++ ./routines/gtksci/x_main.c	Tue Mar 21 19:51:50 2006
@@ -655,8 +655,8 @@
   /* sciprint("GetScreenProperty not implemented in gtk 1\r\n"); */
   return -1;
 #else 
-  start_sci_gtk();
   GdkScreen *screen =  gdk_screen_get_default();
+  start_sci_gtk();
   
   if(!strcmp(prop,"screensize_px"))
     {
@@ -714,9 +714,9 @@
   *iyres = 96;
   return 0;
 #else 
-  start_sci_gtk();
   GdkScreen *screen =  gdk_screen_get_default();
   double xres, yres;
+  start_sci_gtk();
   
   /*
    * there are 2.54 centimeters to an inch; so there are 25.4 millimeters.