commit 11ea6924a65717d2e7a606f0d7880c08cb43d1ab
parent be5431916b27fa6dbc35bfa198fb71e90dac1311
Author: Kyle Milz <krwmilz@gmail.com>
Date: Sat, 11 Sep 2021 21:50:32 +0000
move mgs_rec global to header file
Diffstat:
3 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/events.h b/events.h
@@ -54,6 +54,21 @@ extern struct WindowRec mane, alt, currwin;
/*
+ * Default magnifier sizes
+ */
+struct mg_size_rec {
+ int w;
+ int h;
+} mg_size[] = {
+ { 200, 150 },
+ { 400, 250 },
+ { 700, 500 },
+ { 1000, 800 },
+ { 1200, 1200 }
+};
+
+
+/*
* For each (foreground, background) color pair, we keep information (depending
* on the color model). It is organized as a linked list of linked lists,
* with background color more significant.
diff --git a/xdvi.c b/xdvi.c
@@ -112,9 +112,6 @@ struct _resource resource;
#define brdr_Pixel resource._brdr_Pixel
#define hl_Pixel resource._hl_Pixel
-struct mg_size_rec mg_size[5] = {{200, 150}, {400, 250}, {700, 500},
- {1000, 800}, {1200, 1200}};
-
struct WindowRec mane = {(Window) 0, 1, 0, 0, 0, 0, MAXDIM, 0, MAXDIM, 0};
struct WindowRec alt = {(Window) 0, 1, 0, 0, 0, 0, MAXDIM, 0, MAXDIM, 0};
/* currwin is temporary storage except for within redraw() */
diff --git a/xdvi.h b/xdvi.h
@@ -175,12 +175,6 @@ struct rgb fg_initial; /* Initial fg (from command line) */
struct rgb bg_initial; /* Initial bg */
-extern struct mg_size_rec {
- int w;
- int h;
-}
- mg_size[5];
-
int debug = 0;
#define DBG_BITMAP 1