rnd-19981120-1
[rocksndiamonds.git] / src / init.c
index a80393344f993fccaf72e302fc65420c71ba33b9..5f5419f200243dda3b78212720f1c2ea342b82cc 100644 (file)
@@ -318,6 +318,7 @@ void InitWindow(int argc, char *argv[])
   int win_xpos = WIN_XPOS, win_ypos = WIN_YPOS;
   unsigned long pen_fg = WhitePixel(display,screen);
   unsigned long pen_bg = BlackPixel(display,screen);
+  const int width = WIN_XSIZE, height = WIN_YSIZE;
 
 #ifndef MSDOS
   static struct IconFileInfo icon_pic =
@@ -330,9 +331,6 @@ void InitWindow(int argc, char *argv[])
   screen_width = XDisplayWidth(display, screen);
   screen_height = XDisplayHeight(display, screen);
 
-  width = WIN_XSIZE;
-  height = WIN_YSIZE;
-
   win_xpos = (screen_width - width) / 2;
   win_ypos = (screen_height - height) / 2;