foxygit / doom Log in
commit cbed865a64581ddff5d9182ec77d3be1959c2ee0
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Thu Sep 8 15:34:02 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Fri Sep 30 13:01:53 2022 +0300

    setup/textscreen: Move TXT_SDLWindow extern declaration to txt_sdl.h
---
 src/setup/mainmenu.c | 1 -
 textscreen/txt_sdl.h | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/setup/mainmenu.c b/src/setup/mainmenu.c
index 03116f62..85a735df 100644
--- a/src/setup/mainmenu.c
+++ b/src/setup/mainmenu.c
@@ -274,7 +274,6 @@ static void InitConfig(void)

 static void SetIcon(void)
 {
-    extern SDL_Window *TXT_SDLWindow;
     SDL_Surface *surface;

     surface = SDL_CreateRGBSurfaceFrom((void *) setup_icon_data, setup_icon_w,
diff --git a/textscreen/txt_sdl.h b/textscreen/txt_sdl.h
index 629dc585..57990551 100644
--- a/textscreen/txt_sdl.h
+++ b/textscreen/txt_sdl.h
@@ -37,5 +37,9 @@ typedef int (*TxtSDLEventCallbackFunc)(SDL_Event *event, void *user_data);

 void TXT_SDL_SetEventCallback(TxtSDLEventCallbackFunc callback, void *user_data);

+
+extern SDL_Window *TXT_SDLWindow;
+
+
 #endif /* #ifndef TXT_SDL_H */