From 5b406059ce55a4f24770b17f79153ff672614c47 Mon Sep 17 00:00:00 2001 From: SpinDizzy Date: Fri, 24 Apr 2020 07:04:41 +0000 Subject: [PATCH] custom resolution bug fix --- Src/OSD/SDL/Main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp index c91818c..34c392d 100644 --- a/Src/OSD/SDL/Main.cpp +++ b/Src/OSD/SDL/Main.cpp @@ -857,6 +857,8 @@ int Supermodel(const Game &game, ROMSet *rom_set, IEmulator *Model3, CInputs *In totalYRes = yRes = s_runtime_config["YResolution"].ValueAs(); sprintf(baseTitleStr, "Supermodel - %s", game.title.c_str()); SDL_SetWindowTitle(s_window, baseTitleStr); + SDL_SetWindowSize(s_window, totalXRes, totalYRes); + SDL_SetWindowPosition(s_window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED); bool stretch = s_runtime_config["Stretch"].ValueAs(); bool fullscreen = s_runtime_config["FullScreen"].ValueAs(); if (OKAY != ResizeGLScreen(&xOffset, &yOffset ,&xRes, &yRes, &totalXRes, &totalYRes, !stretch, fullscreen))