Reply 1560 of 2419, by hail-to-the-ryzen
Is this patch compatible with the dosbox-x menu code? It seems to correct the issue where the window position is set at coordinate 0,0 after exiting fullscreen mode. The expected behavior is where the window position is not reset but instead retains its previous location.
diff -rupN SDL-1.2-Orig//src/video/windib/SDL_dibvideo.c SDL-1.2/src/video/windib/SDL_dibvideo.c
--- SDL-1.2-Orig//src/video/windib/SDL_dibvideo.c
+++ SDL-1.2/src/video/windib/SDL_dibvideo.c
@@ -948,8 +948,8 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL
if ((video->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) {
/* HACK */
- SDL_windowX = 0;
- SDL_windowY = 0;
+ // SDL_windowX = 0;
+ // SDL_windowY = 0;
/* pay attention! */
SetFocus(SDL_Window);