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

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

diff --git a/src/i_video.h b/src/i_video.h
index 99375ef2..37e1a6b5 100644
--- a/src/i_video.h
+++ b/src/i_video.h
@@ -95,6 +95,8 @@ extern int integer_scaling;
 extern int vga_porch_flash;
 extern int force_software_renderer;

+extern int png_screenshots;
+
 extern char *window_position;
 void I_GetWindowPosition(int *x, int *y, int w, int h);

diff --git a/src/v_video.c b/src/v_video.c
index 060f7e16..fece1b69 100644
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -841,7 +841,6 @@ void V_ScreenShot(const char *format)
     // find a file name to save it to

 #ifdef HAVE_LIBPNG
-    extern int png_screenshots;
     if (png_screenshots)
     {
         ext = "png";