mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 09:59:32 -06:00
DolphinNoGUI: Make variables constexpr
This commit is contained in:
@ -40,7 +40,7 @@ static std::unique_ptr<Platform> s_platform;
|
|||||||
|
|
||||||
static void signal_handler(int)
|
static void signal_handler(int)
|
||||||
{
|
{
|
||||||
const char message[] = "A signal was received. A second signal will force Dolphin to stop.\n";
|
constexpr char message[] = "A signal was received. A second signal will force Dolphin to stop.\n";
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
puts(message);
|
puts(message);
|
||||||
#else
|
#else
|
||||||
|
@ -185,7 +185,7 @@ LRESULT PlatformWin32::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
|
|||||||
if (hwnd)
|
if (hwnd)
|
||||||
{
|
{
|
||||||
// Remove rounded corners from the render window on Windows 11
|
// Remove rounded corners from the render window on Windows 11
|
||||||
const DWM_WINDOW_CORNER_PREFERENCE corner_preference = DWMWCP_DONOTROUND;
|
constexpr DWM_WINDOW_CORNER_PREFERENCE corner_preference = DWMWCP_DONOTROUND;
|
||||||
DwmSetWindowAttribute(hwnd, DWMWA_WINDOW_CORNER_PREFERENCE, &corner_preference,
|
DwmSetWindowAttribute(hwnd, DWMWA_WINDOW_CORNER_PREFERENCE, &corner_preference,
|
||||||
sizeof(corner_preference));
|
sizeof(corner_preference));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user