1
0
Fork 0
oh_my_little_overlay/games-emulation/dosbox-x/files/dosbox-x-invert-1624f04.patch

31 lines
1.1 KiB
Diff
Raw Normal View History

2024-11-23 04:15:11 +05:00
--- 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