69 lines
2.7 KiB
Diff
69 lines
2.7 KiB
Diff
--- xdvik-22.84.13/texk/xdvik/events.c.orig 2007-08-06 13:33:20.000000000 -0600
|
|
+++ xdvik-22.84.13/texk/xdvik/events.c 2008-01-18 13:30:19.000000000 -0700
|
|
@@ -700,10 +700,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)
|
|
@@ -712,7 +714,7 @@ home(wide_bool scrl)
|
|
}
|
|
# else
|
|
get_xy();
|
|
- if (globals.widgets.x_bar != NULL) {
|
|
+ if (!resource.keep_flag && globals.widgets.x_bar != NULL) {
|
|
int coord = (globals.page.w - mane.width) / 2;
|
|
|
|
if (coord > resource.sidemargin_int / mane.shrinkfactor)
|
|
@@ -749,16 +751,18 @@ 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));
|
|
}
|
|
#else /* MOTIF */
|
|
get_xy();
|
|
- if (globals.widgets.x_bar != NULL) {
|
|
+ if (!resource.keep_flag && globals.widgets.x_bar != NULL) {
|
|
int coord = (globals.page.w - mane.width) / 2;
|
|
|
|
if (coord > resource.sidemargin_int / mane.shrinkfactor)
|
|
--- xdvik-22.84.13/texk/xdvik/xdvi.1.in.orig 2008-01-18 13:55:01.000000000 -0700
|
|
+++ xdvik-22.84.13/texk/xdvik/xdvi.1.in 2008-01-18 13:55:35.000000000 -0700
|
|
@@ -859,6 +859,14 @@ actions, not by
|
|
.B up-or-previous()
|
|
and
|
|
.BR down-or-next() .
|
|
+(Note: this version of the program is modified to honour this
|
|
+flag for
|
|
+.B up-or-previous()
|
|
+and
|
|
+.BR down-or-next()
|
|
+although only for a horizontal position and not vertical. That allows
|
|
+for a "continuous" scrolling back an forth through a document with
|
|
+a display window narrower than a page width.)
|
|
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
.TP
|
|
.B \-l
|