commit c4f4abff8c837c023b01c2b2402ff35f96bed5bf
parent cd7ec9768cc1e3c1d50157c84017adf4762d32ec
Author: Kyle Milz <krwmilz@gmail.com>
Date: Thu, 9 Sep 2021 00:24:56 +0000
move variable and delete duplicate code
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/xdvi.c b/xdvi.c
@@ -122,8 +122,6 @@ XColor cr_Color;
struct mg_size_rec mg_size[5] = {{200, 150}, {400, 250}, {700, 500},
{1000, 800}, {1200, 1200}};
-static char *curr_page;
-
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() */
@@ -978,6 +976,8 @@ main(int argc, char **argv)
{
Dimension screen_w, screen_h;
int i;
+ char *curr_page = NULL;
+
/*
* Step 1: Process command-line options and resources.
@@ -1172,8 +1172,6 @@ argument is to override any papersize specials in the dvi file.\n\n", stderr);
}
if (resource.prescan)
prescan();
- unshrunk_page_w = page_info[current_page].ww;
- unshrunk_page_h = page_info[current_page].wh;
init_page();
/*