src/video/SDL_video.c
changeset 10732 617f3de85b0a
parent 10700 00fe449fbefe
child 10737 3406a0f8b041
equal deleted inserted replaced
10731:fe1e3dfa67ef 10732:617f3de85b0a
  1751     CHECK_WINDOW_MAGIC(window,);
  1751     CHECK_WINDOW_MAGIC(window,);
  1752 
  1752 
  1753     if (SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISCENTERED(y)) {
  1753     if (SDL_WINDOWPOS_ISCENTERED(x) || SDL_WINDOWPOS_ISCENTERED(y)) {
  1754         int displayIndex = (x & 0xFFFF);
  1754         int displayIndex = (x & 0xFFFF);
  1755         SDL_Rect bounds;
  1755         SDL_Rect bounds;
  1756         if (displayIndex > _this->num_displays) {
  1756         if (displayIndex >= _this->num_displays) {
  1757             displayIndex = 0;
  1757             displayIndex = 0;
  1758         }
  1758         }
  1759 
  1759 
  1760         SDL_zero(bounds);
  1760         SDL_zero(bounds);
  1761 
  1761