[client,sdl3] update to new API
This commit is contained in:
parent
215f798665
commit
2a641aa834
@ -147,7 +147,8 @@ bool SDLConnectionDialog::setModal()
|
||||
return true;
|
||||
|
||||
auto parent = sdl->windows.begin()->second.window();
|
||||
SDL_SetWindowModalFor(_window, parent);
|
||||
SDL_SetWindowParent(_window, parent);
|
||||
SDL_SetWindowModal(_window, SDL_TRUE);
|
||||
SDL_RaiseWindow(_window);
|
||||
}
|
||||
return true;
|
||||
|
@ -1481,8 +1481,8 @@ static const char* category2str(int category)
|
||||
return "SDL_LOG_CATEGORY_INPUT";
|
||||
case SDL_LOG_CATEGORY_TEST:
|
||||
return "SDL_LOG_CATEGORY_TEST";
|
||||
case SDL_LOG_CATEGORY_RESERVED1:
|
||||
return "SDL_LOG_CATEGORY_RESERVED1";
|
||||
case SDL_LOG_CATEGORY_GPU:
|
||||
return "SDL_LOG_CATEGORY_GPU";
|
||||
case SDL_LOG_CATEGORY_RESERVED2:
|
||||
return "SDL_LOG_CATEGORY_RESERVED2";
|
||||
case SDL_LOG_CATEGORY_RESERVED3:
|
||||
|
@ -241,7 +241,7 @@ BOOL sdl_handle_mouse_button(SdlContext* sdl, const SDL_MouseButtonEvent* ev)
|
||||
WINPR_ASSERT(sdl);
|
||||
WINPR_ASSERT(ev);
|
||||
|
||||
if (ev->state == SDL_PRESSED)
|
||||
if (ev->type == SDL_EVENT_MOUSE_BUTTON_DOWN)
|
||||
{
|
||||
flags |= PTR_FLAGS_DOWN;
|
||||
xflags |= PTR_XFLAGS_DOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user