From 9669192e10ed91be9b3c67407933afaf54a3f75b Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sat, 21 Feb 2026 02:31:43 -0500 Subject: [PATCH] what the fuck were these sdl memsets for only ones in the entire codebase btw --- src/sdl/i_video.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sdl/i_video.cpp b/src/sdl/i_video.cpp index 45ff58a2e..ac98582b5 100644 --- a/src/sdl/i_video.cpp +++ b/src/sdl/i_video.cpp @@ -869,8 +869,6 @@ static void Impl_HandleMouseButtonEvent(SDL_MouseButtonEvent evt, Uint32 type) { event_t event; - SDL_memset(&event, 0, sizeof(event_t)); - // Ignore the event if the mouse is not actually focused on the window. // This can happen if you used the mouse to restore keyboard focus; // this apparently makes a mouse button down event but not a mouse button up event, @@ -914,8 +912,6 @@ static void Impl_HandleMouseWheelEvent(SDL_MouseWheelEvent evt) { event_t event; - SDL_memset(&event, 0, sizeof(event_t)); - event.device = 0; int y = evt.y; @@ -1208,7 +1204,6 @@ void I_GetEvent(void) event_t event; int wwidth, wheight; SDL_GetWindowSize(window, &wwidth, &wheight); - //SDL_memset(&event, 0, sizeof(event_t)); event.type = ev_mouse; event.device = 0; // TODO device event.data1 = 0;