From 839387ed0a27bdaf6b9ea0ba7cea16950762078d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 17 Jun 2021 22:09:13 -0400 Subject: [PATCH] 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. --- src/video/dummy/SDL_nullvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/dummy/SDL_nullvideo.c b/src/video/dummy/SDL_nullvideo.c index d53c64436..1ab0b8c00 100644 --- a/src/video/dummy/SDL_nullvideo.c +++ b/src/video/dummy/SDL_nullvideo.c @@ -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! */