shithub: choc

Download patch

ref: cbed865a64581ddff5d9182ec77d3be1959c2ee0
parent: ca489967b68f63cb90b6a1088288449a74fd2fd1
author: Turo Lamminen <turol@iki.fi>
date: Thu Sep 8 11:34:02 EDT 2022

setup/textscreen: Move TXT_SDLWindow extern declaration to txt_sdl.h

--- a/src/setup/mainmenu.c
+++ b/src/setup/mainmenu.c
@@ -274,7 +274,6 @@
 
 static void SetIcon(void)
 {
-    extern SDL_Window *TXT_SDLWindow;
     SDL_Surface *surface;
 
     surface = SDL_CreateRGBSurfaceFrom((void *) setup_icon_data, setup_icon_w,
--- a/textscreen/txt_sdl.h
+++ b/textscreen/txt_sdl.h
@@ -37,5 +37,9 @@
 
 void TXT_SDL_SetEventCallback(TxtSDLEventCallbackFunc callback, void *user_data);
 
+
+extern SDL_Window *TXT_SDLWindow;
+
+
 #endif /* #ifndef TXT_SDL_H */