src/video/x11/SDL_x11modes.c
changeset 10031 2b3baddd9afa
parent 10030 061b1b467bd3
child 10172 b4316ed0c72c
     1.1 --- a/src/video/x11/SDL_x11modes.c	Tue Jan 05 02:29:16 2016 -0500
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Tue Jan 05 05:22:35 2016 -0500
     1.3 @@ -1095,9 +1095,9 @@
     1.4                                      &real_type, &real_format, &items_read,
     1.5                                      &items_left, &propdata);
     1.6      if ((status == Success) && (items_read >= 4)) {
     1.7 -        retval = 0;
     1.8          const long *p = (long*) propdata;
     1.9          const SDL_Rect usable = { (int)p[0], (int)p[1], (int)p[2], (int)p[3] };
    1.10 +        retval = 0;
    1.11          if (!SDL_IntersectRect(rect, &usable, rect)) {
    1.12              SDL_zerop(rect);
    1.13          }