[client,sdl] fix sdl3 warnings
This commit is contained in:
parent
32169be68e
commit
21668dc941
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user