Adding SDL_GetWindowSizeInPixels for window size in pixels (#6112)

This commit is contained in:
Noel Berry 2022-08-24 11:25:13 -07:00 committed by GitHub
parent 70c781c803
commit 00452e47fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 122 additions and 142 deletions

View file

@ -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;