mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-02-18 03:18:32 -06:00
Added export to disable rounded corners on Windows 11 (#212)
This commit is contained in:
@@ -231,6 +231,12 @@ void GameWindow::Init(const char* sdlVideoDriver)
|
||||
|
||||
#if defined(_WIN32)
|
||||
s_renderWindow = info.info.win.window;
|
||||
|
||||
if (Config::DisableDWMRoundedCorners)
|
||||
{
|
||||
DWM_WINDOW_CORNER_PREFERENCE wcp = DWMWCP_DONOTROUND;
|
||||
DwmSetWindowAttribute(s_renderWindow, DWMWA_WINDOW_CORNER_PREFERENCE, &wcp, sizeof(wcp));
|
||||
}
|
||||
#elif defined(SDL_VULKAN_ENABLED)
|
||||
s_renderWindow = s_pWindow;
|
||||
#elif defined(__linux__)
|
||||
|
||||
@@ -77,6 +77,7 @@ CONFIG_DEFINE_ENUM_LOCALISED("Video", EUIScaleMode, UIScaleMode, EUIScaleMode::E
|
||||
CONFIG_DEFINE_HIDDEN("Exports", bool, AllowCancellingUnleash, false);
|
||||
CONFIG_DEFINE_HIDDEN("Exports", bool, DisableAutoSaveWarning, false);
|
||||
CONFIG_DEFINE_HIDDEN("Exports", bool, DisableDLCIcon, false);
|
||||
CONFIG_DEFINE_HIDDEN("Exports", bool, DisableDWMRoundedCorners, false);
|
||||
CONFIG_DEFINE_HIDDEN("Exports", bool, FixUnleashOutOfControlDrain, false);
|
||||
CONFIG_DEFINE_HIDDEN("Exports", bool, HomingAttackOnBoost, true);
|
||||
CONFIG_DEFINE_HIDDEN("Exports", bool, SaveScoreAtCheckpoints, false);
|
||||
|
||||
Reference in New Issue
Block a user