X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=5f5419f200243dda3b78212720f1c2ea342b82cc;hp=a80393344f993fccaf72e302fc65420c71ba33b9;hb=3dc317d10b44cc6b75db10ac194966ad8114d390;hpb=e8bffba310b8b33e441a952335273665c07eb4a5 diff --git a/src/init.c b/src/init.c index a8039334..5f5419f2 100644 --- a/src/init.c +++ b/src/init.c @@ -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;