Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11video.c @ 867:5c7859610bc4
Force recreation of X11 window if going to or from a SDL_NOFRAME vidmode.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 02 Mar 2004 19:38:55 +0000 |
parents | 2bac79e27868 |
children | 045f186426e1 |
comparison
equal
deleted
inserted
replaced
866:0a45995a7fc3 | 867:5c7859610bc4 |
---|---|
940 /* Flush any delayed updates */ | 940 /* Flush any delayed updates */ |
941 XSync(GFX_Display, False); | 941 XSync(GFX_Display, False); |
942 | 942 |
943 /* Set up the X11 window */ | 943 /* Set up the X11 window */ |
944 saved_flags = current->flags; | 944 saved_flags = current->flags; |
945 if (SDL_Window && (saved_flags&SDL_OPENGL) == (flags&SDL_OPENGL) | 945 if ( (SDL_Window) && ((saved_flags&SDL_OPENGL) == (flags&SDL_OPENGL)) |
946 && bpp == current->format->BitsPerPixel) { | 946 && (bpp == current->format->BitsPerPixel) |
947 && ((saved_flags&SDL_NOFRAME) == (flags&SDL_NOFRAME)) ) { | |
947 if (X11_ResizeWindow(this, current, width, height, flags) < 0) { | 948 if (X11_ResizeWindow(this, current, width, height, flags) < 0) { |
948 current = NULL; | 949 current = NULL; |
949 goto done; | 950 goto done; |
950 } | 951 } |
951 } else { | 952 } else { |