texlive/texlive-2007-xdvi-keepflag.patch
2007-12-02 08:03:19 +00:00

37 lines
1.6 KiB
Diff

--- tetex-src-3.0/texk/xdvik/events.c.xdvi-keepflag 2004-11-29 17:45:11.000000000 -0700
+++ tetex-src-3.0/texk/xdvik/events.c 2005-11-02 17:02:19.000000000 -0700
@@ -696,10 +696,12 @@ home(wide_bool scrl)
{
int value;
- value = (globals.page.w - mane.width) / 2;
- if (value > resource.sidemargin_int / mane.shrinkfactor)
- value = resource.sidemargin_int / mane.shrinkfactor;
- (void)set_bar_value(globals.widgets.x_bar, value, (int)(globals.page.w - mane.width));
+ if (!resource.keep_flag) {
+ value = (globals.page.w - mane.width) / 2;
+ if (value > resource.sidemargin_int / mane.shrinkfactor)
+ value = resource.sidemargin_int / mane.shrinkfactor;
+ (void)set_bar_value(globals.widgets.x_bar, value, (int)(globals.page.w - mane.width));
+ }
value = (globals.page.h - mane.height) / 2;
if (value > resource.topmargin_int / mane.shrinkfactor)
@@ -745,10 +747,12 @@ home_bottom(wide_bool scrl)
{
int value;
- value = (globals.page.w - mane.width) / 2;
- if (value > resource.sidemargin_int / mane.shrinkfactor)
- value = resource.sidemargin_int / mane.shrinkfactor;
- (void)set_bar_value(globals.widgets.x_bar, value, (int)(globals.page.w - mane.width));
+ if (!resource.keep_flag) {
+ value = (globals.page.w - mane.width) / 2;
+ if (value > resource.sidemargin_int / mane.shrinkfactor)
+ value = resource.sidemargin_int / mane.shrinkfactor;
+ (void)set_bar_value(globals.widgets.x_bar, value, (int)(globals.page.w - mane.width));
+ }
(void)set_bar_value(globals.widgets.y_bar, (int)(globals.page.h - mane.height), (int)(globals.page.h - mane.height));
}