home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast.iso
/
dv_x
/
dvix.zip
/
DVIX.PAT
< prev
next >
Wrap
Text File
|
1989-04-26
|
2KB
|
53 lines
*** /csri3/X/localstuff/dvix/xbmdvi.c Wed Apr 26 13:09:42 1989
--- dvix/xbmdvi.c Wed Apr 26 16:19:07 1989
***************
*** 248,254 ****
if (file == NULL)
goto usage;
- open_dvi_file(file);
if ((dsp = XOpenDisplay(display)) == NULL)
{
(void) fprintf(stderr, "Can't open display %s!\n", display);
--- 248,253 ----
***************
*** 365,370 ****
--- 364,370 ----
mouspix = cdef.pixel;
}
+ open_dvi_file(file);
if (seen_shrink || seen_density || seen_pixels) {
init_page();
define_conv();
***************
*** 379,388 ****
if (geometry) {
gflag = XParseGeometry(geometry, &hints.x, &hints.y,
&hints.width, &hints.height);
-
hints.flags |=
((gflag&(XValue|YValue))?(USPosition):0) |
((gflag&(WidthValue|HeightValue))?(USSize):0);
}
else {
hints.flags |= PSize;
--- 379,395 ----
if (geometry) {
gflag = XParseGeometry(geometry, &hints.x, &hints.y,
&hints.width, &hints.height);
hints.flags |=
((gflag&(XValue|YValue))?(USPosition):0) |
((gflag&(WidthValue|HeightValue))?(USSize):0);
+ if (gflag&XNegative) {
+ hints.x = WidthOfScreen(scr) - hints.x - hints.width
+ - 2*bwidth;
+ }
+ if (gflag&YNegative) {
+ hints.y = HeightOfScreen(scr) - hints.y - hints.height
+ - 2*bwidth;
+ }
}
else {
hints.flags |= PSize;