foxygit / doom Log in
commit 57f7f44655b42f1bf4adede78b58cd63e3c2bb9f
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Thu Sep 8 13:47:40 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Wed Sep 28 12:35:52 2022 +0300

    video: Move usemouse extern declaration to i_video.h
---
 src/i_video.h | 3 +++
 src/v_video.c | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/i_video.h b/src/i_video.h
index 37e1a6b5..83ab96d5 100644
--- a/src/i_video.h
+++ b/src/i_video.h
@@ -103,4 +103,7 @@ void I_GetWindowPosition(int *x, int *y, int w, int h);
 // Joystic/gamepad hysteresis
 extern unsigned int joywait;

+extern int usemouse;
+
+
 #endif
diff --git a/src/v_video.c b/src/v_video.c
index fece1b69..c35f259f 100644
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -985,7 +985,6 @@ static void DrawNonAcceleratingBox(int speed)

 void V_DrawMouseSpeedBox(int speed)
 {
-    extern int usemouse;
     int bgcolor, bordercolor, black;

     // If the mouse is turned off, don't draw the box at all.