home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / dv_x / dvix.zip / DVIX.PAT < prev    next >
Text File  |  1989-04-26  |  2KB  |  53 lines

  1. *** /csri3/X/localstuff/dvix/xbmdvi.c    Wed Apr 26 13:09:42 1989
  2. --- dvix/xbmdvi.c    Wed Apr 26 16:19:07 1989
  3. ***************
  4. *** 248,254 ****
  5.           if (file == NULL)
  6.           goto usage;
  7.   
  8. -     open_dvi_file(file);
  9.       if ((dsp = XOpenDisplay(display)) == NULL)
  10.       {
  11.           (void) fprintf(stderr, "Can't open display %s!\n", display);
  12. --- 248,253 ----
  13. ***************
  14. *** 365,370 ****
  15. --- 364,370 ----
  16.                           mouspix = cdef.pixel;
  17.           }
  18.   
  19. +     open_dvi_file(file);
  20.       if (seen_shrink || seen_density || seen_pixels) {
  21.           init_page();
  22.           define_conv();
  23. ***************
  24. *** 379,388 ****
  25.           if (geometry) {
  26.           gflag = XParseGeometry(geometry, &hints.x, &hints.y,
  27.                                      &hints.width, &hints.height);
  28.               hints.flags |=
  29.                 ((gflag&(XValue|YValue))?(USPosition):0) |
  30.                   ((gflag&(WidthValue|HeightValue))?(USSize):0);
  31.           }
  32.           else {
  33.               hints.flags |= PSize;
  34. --- 379,395 ----
  35.           if (geometry) {
  36.           gflag = XParseGeometry(geometry, &hints.x, &hints.y,
  37.                                      &hints.width, &hints.height);
  38.               hints.flags |=
  39.                 ((gflag&(XValue|YValue))?(USPosition):0) |
  40.                   ((gflag&(WidthValue|HeightValue))?(USSize):0);
  41. +         if (gflag&XNegative) {
  42. +         hints.x = WidthOfScreen(scr) - hints.x - hints.width
  43. +               - 2*bwidth;
  44. +         }
  45. +         if (gflag&YNegative) {
  46. +         hints.y = HeightOfScreen(scr) - hints.y - hints.height
  47. +               - 2*bwidth;
  48. +         }
  49.           }
  50.           else {
  51.               hints.flags |= PSize;
  52.