mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Implement Wayland_SetWindowResizable
This commit is contained in:
parent
360e04dd23
commit
e787282ba8
@ -203,6 +203,7 @@ Wayland_CreateDevice(int devindex)
|
||||
device->SetWindowGrab = Wayland_SetWindowGrab;
|
||||
device->RestoreWindow = Wayland_RestoreWindow;
|
||||
device->SetWindowBordered = Wayland_SetWindowBordered;
|
||||
device->SetWindowResizable = Wayland_SetWindowResizable;
|
||||
device->SetWindowSize = Wayland_SetWindowSize;
|
||||
device->SetWindowTitle = Wayland_SetWindowTitle;
|
||||
device->DestroyWindow = Wayland_DestroyWindow;
|
||||
|
@ -627,6 +627,16 @@ Wayland_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Wayland_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable)
|
||||
{
|
||||
/* No-op, this is handled by the xdg-shell/wl_shell callbacks.
|
||||
* Also note that we do NOT implement SetMaximumSize/SetMinimumSize, as
|
||||
* those are also no-ops for the same reason, but SDL_video.c does not
|
||||
* require a driver implementation.
|
||||
*/
|
||||
}
|
||||
|
||||
void
|
||||
Wayland_MaximizeWindow(_THIS, SDL_Window * window)
|
||||
{
|
||||
|
@ -94,6 +94,7 @@ extern void Wayland_MinimizeWindow(_THIS, SDL_Window * window);
|
||||
extern void Wayland_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed);
|
||||
extern void Wayland_RestoreWindow(_THIS, SDL_Window * window);
|
||||
extern void Wayland_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered);
|
||||
extern void Wayland_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable);
|
||||
extern int Wayland_CreateWindow(_THIS, SDL_Window *window);
|
||||
extern void Wayland_SetWindowSize(_THIS, SDL_Window * window);
|
||||
extern void Wayland_SetWindowTitle(_THIS, SDL_Window * window);
|
||||
|
Loading…
Reference in New Issue
Block a user