src/video/nacl/SDL_naclvideo.c
changeset 8873 77ffe680093f
parent 8833 ae720d61d14d
child 9619 b94b6d0bff0f
     1.1 --- a/src/video/nacl/SDL_naclvideo.c	Mon Jun 16 09:47:23 2014 -0300
     1.2 +++ b/src/video/nacl/SDL_naclvideo.c	Mon Jun 16 09:54:33 2014 -0300
     1.3 @@ -139,6 +139,7 @@
     1.4      SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata;
     1.5      SDL_DisplayMode mode;
     1.6  
     1.7 +    SDL_zero(mode);
     1.8      mode.format = driverdata->format;
     1.9      mode.w = driverdata->w;
    1.10      mode.h = driverdata->h;
    1.11 @@ -147,8 +148,7 @@
    1.12      if (SDL_AddBasicVideoDisplay(&mode) < 0) {
    1.13          return -1;
    1.14      }
    1.15 -    
    1.16 -    SDL_zero(mode);
    1.17 +
    1.18      SDL_AddDisplayMode(&_this->displays[0], &mode);
    1.19      
    1.20      PSInterfaceInit();