src/video/emscripten/SDL_emscriptenvideo.c
changeset 12577 32d2fe2bc966
parent 12576 8d61748ac590
child 12578 b127ca09e7fe
equal deleted inserted replaced
12576:8d61748ac590 12577:32d2fe2bc966
   154     mode.driverdata = NULL;
   154     mode.driverdata = NULL;
   155     if (SDL_AddBasicVideoDisplay(&mode) < 0) {
   155     if (SDL_AddBasicVideoDisplay(&mode) < 0) {
   156         return -1;
   156         return -1;
   157     }
   157     }
   158 
   158 
   159     SDL_zero(mode);
       
   160     SDL_AddDisplayMode(&_this->displays[0], &mode);
   159     SDL_AddDisplayMode(&_this->displays[0], &mode);
   161 
   160 
   162     Emscripten_InitMouse();
   161     Emscripten_InitMouse();
   163 
   162 
   164     /* We're done! */
   163     /* We're done! */