[client,sdl] fix sdl3 warnings

This commit is contained in:
akallabeth 2024-10-16 11:41:15 +02:00
parent 32169be68e
commit 21668dc941
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ UINT sdlClip::MonitorReady(CliprdrClientContext* context, const CLIPRDR_MONITOR_
return ret;
clipboard->_sync = true;
SDL_ClipboardEvent ev = { SDL_EVENT_CLIPBOARD_UPDATE, 0, 0, false, NULL, 0 };
SDL_ClipboardEvent ev = { SDL_EVENT_CLIPBOARD_UPDATE, 0, 0, false, 0, nullptr };
if (!clipboard->handle_update(ev))
return ERROR_INTERNAL_ERROR;

View File

@ -207,7 +207,7 @@ static BOOL sdl_apply_display_properties(SdlContext* sdl)
float vdpi = dpi;
SDL_Rect rect = {};
if (SDL_GetDisplayBounds(*id, &rect) < 0)
if (!SDL_GetDisplayBounds(*id, &rect))
return FALSE;
WINPR_ASSERT(rect.w > 0);