From 1ce265fe89fa7bcbcede1d2c42543a6dc146bd48 Mon Sep 17 00:00:00 2001 From: headshot2017 <> Date: Sat, 16 Mar 2024 16:00:12 -0400 Subject: [PATCH] remove stray code from Applet_Event this is already in GLContext_InitSurface --- src/Window_Switch.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Window_Switch.c b/src/Window_Switch.c index 6f48b58d8..0c975695f 100644 --- a/src/Window_Switch.c +++ b/src/Window_Switch.c @@ -50,14 +50,7 @@ static void Applet_Event(AppletHookType type, void* param) { framebufferMakeLinear(&fb); } - NWindow* win = (NWindow*)Window_Main.Handle; - int real_width = win->width; win->width = Window_Main.Width; - int real_height = win->height; win->height = Window_Main.Height; - Event_RaiseVoid(&WindowEvents.Resized); - - win->width = real_width; - win->height = real_height; } }