mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-22 09:05:50 -04:00
window: implemented monitor switching
This commit is contained in:
@@ -34,7 +34,14 @@ public:
|
||||
CONFIG_DEFINE("Video", int32_t, WindowWidth, 1280);
|
||||
CONFIG_DEFINE("Video", int32_t, WindowHeight, 720);
|
||||
CONFIG_DEFINE_ENUM("Video", EWindowState, WindowState, EWindowState::Normal);
|
||||
CONFIG_DEFINE_LOCALISED("Video", size_t, Monitor, 0);
|
||||
|
||||
CONFIG_DEFINE_CALLBACK("Video", int32_t, Monitor, 0,
|
||||
{
|
||||
def->Locale = &g_Monitor_locale;
|
||||
|
||||
Window_SetDisplay(def->Value);
|
||||
});
|
||||
|
||||
CONFIG_DEFINE_ENUM_LOCALISED("Video", EAspectRatio, AspectRatio, EAspectRatio::Auto);
|
||||
|
||||
CONFIG_DEFINE_CALLBACK("Video", float, ResolutionScale, 1.0f,
|
||||
@@ -48,6 +55,7 @@ public:
|
||||
def->Locale = &g_Fullscreen_locale;
|
||||
|
||||
Window_SetFullscreen(def->Value);
|
||||
Window_SetDisplay(Monitor);
|
||||
});
|
||||
|
||||
CONFIG_DEFINE_LOCALISED("Video", bool, VSync, true);
|
||||
|
||||
Reference in New Issue
Block a user