mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-18 17:32:24 +08:00
SDL 1.x: Add SDL_SetVideoMode flag that says the library should NOT automatically redraw the window contents when the window needs repainting. For the SDL 1.x X11 driver, this flag inhibits repainting the contents of the window on the X11 Expose event, which solves the problem with the DOS screen flickering while you resize the window in Linux. When the DOS prompt has been fully redrawn, remove the flag and handle the window as normal.
This commit is contained in:
@@ -142,7 +142,8 @@ typedef struct SDL_Surface {
|
||||
#define SDL_OPENGL 0x00000002 /**< Create an OpenGL rendering context */
|
||||
#define SDL_OPENGLBLIT 0x0000000A /**< Create an OpenGL rendering context and use it for blitting */
|
||||
#define SDL_RESIZABLE 0x00000010 /**< This video mode may be resized */
|
||||
#define SDL_NOFRAME 0x00000020 /**< No window caption or edge frame */
|
||||
#define SDL_NOFRAME 0x00000020 /**< No window caption or edge frame */
|
||||
#define SDL_HAX_NOREFRESH 0x10000000/**< DOSBox-X specific: Disable auto-redraw of the window when repainting is needed */
|
||||
/*@}*/
|
||||
|
||||
/** Used internally (read-only) */
|
||||
|
Reference in New Issue
Block a user