mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 09:26:25 +00:00
Adding SDL_GetWindowSizeInPixels for window size in pixels (#6112)
This commit is contained in:
@@ -2067,6 +2067,16 @@ void Wayland_SetWindowSize(_THIS, SDL_Window * window)
|
||||
}
|
||||
}
|
||||
|
||||
void Wayland_GetWindowSizeInPixels(_THIS, SDL_Window * window, int *w, int *h)
|
||||
{
|
||||
SDL_WindowData *data;
|
||||
if (window->driverdata) {
|
||||
data = (SDL_WindowData *) window->driverdata;
|
||||
*w = data->drawable_width;
|
||||
*h = data->drawable_height;
|
||||
}
|
||||
}
|
||||
|
||||
void Wayland_SetWindowTitle(_THIS, SDL_Window * window)
|
||||
{
|
||||
SDL_WindowData *wind = window->driverdata;
|
||||
|
Reference in New Issue
Block a user