src/video/SDL_video.c
changeset 10732 617f3de85b0a
parent 10700 00fe449fbefe
child 10737 3406a0f8b041
     1.1 --- a/src/video/SDL_video.c	Fri Dec 30 19:57:50 2016 +0100
     1.2 +++ b/src/video/SDL_video.c	Sat Dec 31 10:30:07 2016 -0800
     1.3 @@ -1753,7 +1753,7 @@
     1.4      if (SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISCENTERED(y)) {
     1.5          int displayIndex = (x & 0xFFFF);
     1.6          SDL_Rect bounds;
     1.7 -        if (displayIndex > _this->num_displays) {
     1.8 +        if (displayIndex >= _this->num_displays) {
     1.9              displayIndex = 0;
    1.10          }
    1.11