video/dummy: Don't zero out the fake display mode before adding it.

The SDL_zero call was in the wrong place as a historical accident, I think.
main
Ryan C. Gordon 2021-06-17 22:09:13 -04:00
parent 268fbcd460
commit 839387ed0a
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 1 deletions

View File

@ -116,6 +116,7 @@ DUMMY_VideoInit(_THIS)
SDL_DisplayMode mode;
/* Use a fake 32-bpp desktop mode */
SDL_zero(mode);
mode.format = SDL_PIXELFORMAT_RGB888;
mode.w = 1024;
mode.h = 768;
@ -125,7 +126,6 @@ DUMMY_VideoInit(_THIS)
return -1;
}
SDL_zero(mode);
SDL_AddDisplayMode(&_this->displays[0], &mode);
/* We're done! */