Replace 'reinterpret_cast' with 'static_cast'

This commit is contained in:
Dr. Dystopia
2024-07-24 06:24:51 +02:00
parent 53ede795a2
commit 6d44afc7dd
26 changed files with 31 additions and 36 deletions

View File

@ -141,7 +141,7 @@ void RenderWidget::OnHandleChanged(void* handle)
#ifdef _WIN32
// Remove rounded corners from the render window on Windows 11
const DWM_WINDOW_CORNER_PREFERENCE corner_preference = DWMWCP_DONOTROUND;
DwmSetWindowAttribute(reinterpret_cast<HWND>(handle), DWMWA_WINDOW_CORNER_PREFERENCE,
DwmSetWindowAttribute(static_cast<HWND>(handle), DWMWA_WINDOW_CORNER_PREFERENCE,
&corner_preference, sizeof(corner_preference));
#endif
}