Mercurial > minori
diff src/sys/win32/dark_theme.cc @ 106:c8c72278f6fd
*: #if -> #ifdef, remove outdated comments in sys/win32/dark_theme.cc
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 04:01:58 -0500 |
parents | 6d8da6e64d61 |
children | bc8d2ccff09c |
line wrap: on
line diff
--- a/src/sys/win32/dark_theme.cc Sun Nov 05 03:54:26 2023 -0500 +++ b/src/sys/win32/dark_theme.cc Sun Nov 05 04:01:58 2023 -0500 @@ -16,8 +16,10 @@ Unload(); } void Unload() { - if (hInstance) + if (hInstance) { FreeLibrary(hInstance); + hInstance = nullptr; + } loaded = false; } void Load(LPCWSTR name) { @@ -63,7 +65,6 @@ return set_wind_attrib(hWnd, key, data, sz_data); } -/* Ok, so this doesn't work. Woohoo! :) */ bool SetTitleBarToBlack(QWidget* win, bool enabled) { BOOL b = enabled; @@ -77,7 +78,6 @@ } { - /* It's 19 in older Windows 10 versions. Yeah, stupid. */ HRESULT result = SetWindowAttribute(reinterpret_cast<HWND>(win->winId()), 19, &b, sizeof(b)); if (result == S_OK) return b;