mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fixed build
Also removed the assert, since we assume window->driverdata is valid everywhere else.
This commit is contained in:
parent
0429f5d6a3
commit
e161795071
1 changed files with 1 additions and 4 deletions
|
|
@ -2470,11 +2470,8 @@ void Wayland_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window)
|
|||
|
||||
void Wayland_GetWindowSizeInPixels(SDL_VideoDevice *_this, SDL_Window *window, int *w, int *h)
|
||||
{
|
||||
SDL_WindowData *data;
|
||||
SDL_WindowData *data = window->driverdata;
|
||||
|
||||
SDL_assert(window->driverdata)
|
||||
|
||||
data = window->driverdata;
|
||||
*w = data->current.drawable_width;
|
||||
*h = data->current.drawable_height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue