After messing around with this for a while, I found a hacky fix that prevents
the fullscreen bug from happening when I run ./game.sh
However, this hack makes it so that when I run ./ohrrpgce-custom a different,
slightly worse bug happens each time I return from fullscreen to windowed mode
(the whole screen gets offset upward, cutting off the top part of the screen,
and leaving a black box at the bottom)
```
diff --git a/gfx_sdl2.bas b/gfx_sdl2.bas
index 7ae99b94..8121d374 100644
--- a/gfx_sdl2.bas
+++ b/gfx_sdl2.bas
@@ -1094,6 +1094,10 @@ LOCAL SUB keycombos_logic(evnt as SDL_Event)
IF evnt.key.keysym.sym = SDLK_RETURN THEN 'alt-enter (not processed
normally when using SDL)
gfx_sdl2_setwindowed(windowedmode XOR YES)
post_event(eventFullscreened, windowedmode = NO)
+ 'Repeat these calls as a hack to fix bug #1242 when running ./game.sh
+ 'but adds an even worse bug when NOT using ./game.sh *crying-emoji*
+ gfx_sdl2_setwindowed(windowedmode)
+ post_event(eventFullscreened, windowedmode = NO)
END IF
IF evnt.key.keysym.sym = SDLK_F4 THEN 'alt-F4
post_terminate_signal
```
So definitely NOT a good fix, but interesting that it behaves this way
--
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1242#issuecomment-1709125400
You are receiving this because you are subscribed to this thread.
Message ID: <ohrrpgce/ohrrpgce/issues/1242/1709125...@github.com>
_______________________________________________
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org