mirror of https://github.com/libsdl-org/SDL.git
SDL_windowsevents.c: fixed -Werror=unused-variable
This commit is contained in:
parent
277fded7ba
commit
f8cce4ead4
|
|
@ -1542,11 +1542,11 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
case WM_DPICHANGED:
|
case WM_DPICHANGED:
|
||||||
/* Windows 8.1+ */
|
/* Windows 8.1+ */
|
||||||
{
|
{
|
||||||
const int newDPI = HIWORD(wParam);
|
|
||||||
RECT *const suggestedRect = (RECT *)lParam;
|
RECT *const suggestedRect = (RECT *)lParam;
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|
||||||
#ifdef HIGHDPI_DEBUG
|
#ifdef HIGHDPI_DEBUG
|
||||||
|
const int newDPI = HIWORD(wParam);
|
||||||
SDL_Log("WM_DPICHANGED: to %d\tsuggested rect: (%d, %d), (%dx%d)\n", newDPI,
|
SDL_Log("WM_DPICHANGED: to %d\tsuggested rect: (%d, %d), (%dx%d)\n", newDPI,
|
||||||
suggestedRect->left, suggestedRect->top, suggestedRect->right - suggestedRect->left, suggestedRect->bottom - suggestedRect->top);
|
suggestedRect->left, suggestedRect->top, suggestedRect->right - suggestedRect->left, suggestedRect->bottom - suggestedRect->top);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue