1
0
Fork 0
oh_my_little_overlay/games-emulation/dosbox-x/files/dosbox-x-invert-1624f04.patch
2024-11-23 01:15:11 +02:00

30 lines
1.1 KiB
Diff

--- b/src/output/output_opengl.cpp
+++ a/src/output/output_opengl.cpp
@@ -199,11 +199,7 @@
#if DOSBOXMENU_TYPE == DOSBOXMENU_SDLDRAW
/* scale the menu bar if the window is large enough */
+ {
- /* SDL drawn menus cannot coexist with 3Dfx emulation. In fact, there is a serious
- * bug in SDL1 builds that rapidly expands the vertical size of the menu every frame. */
- if (Voodoo_OGL_GetWidth() != 0 && Voodoo_OGL_GetHeight() != 0 && Voodoo_OGL_Active() && sdl.desktop.prevent_fullscreen) {
- }
- else {
int cw = fixedWidth, ch = fixedHeight;
int scale = 1;
@@ -259,12 +255,8 @@
#if DOSBOXMENU_TYPE == DOSBOXMENU_SDLDRAW
if (mainMenu.isVisible() && !sdl.desktop.fullscreen)
{
+ windowHeight += mainMenu.menuBox.h;
+ sdl.clip.y += mainMenu.menuBox.h;
- if (Voodoo_OGL_GetWidth() != 0 && Voodoo_OGL_GetHeight() != 0 && Voodoo_OGL_Active() && sdl.desktop.prevent_fullscreen) {
- }
- else {
- windowHeight += mainMenu.menuBox.h;
- sdl.clip.y += mainMenu.menuBox.h;
- }
}
#endif