Fixed compiler warning

This commit is contained in:
Sam Lantinga 2012-10-03 20:22:14 -07:00
parent e58466c00c
commit a2a3c4ae55

View file

@ -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(&center, 1, &rect, NULL)) {
return i;