mirror of
https://github.com/yawut/SDL.git
synced 2026-07-06 02:28:37 -05:00
Fixed compiler warning
This commit is contained in:
parent
768d4d20db
commit
96da5bb5b4
|
|
@ -943,8 +943,6 @@ SDL_GetWindowDisplay(SDL_Window * window)
|
|||
center.x = window->x + window->w / 2;
|
||||
center.y = window->y + window->h / 2;
|
||||
for (i = 0; i < _this->num_displays; ++i) {
|
||||
SDL_VideoDisplay *display = &_this->displays[i];
|
||||
|
||||
SDL_GetDisplayBounds(i, &rect);
|
||||
if (SDL_EnclosePoints(¢er, 1, &rect, NULL)) {
|
||||
return i;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user