home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6659 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.3 KB

  1. Path: sparky!uunet!destroyer!gatech!prism!jm59
  2. From: jm59@prism.gatech.EDU (MILLS,JOHN M.)
  3. Newsgroups: comp.lang.pascal
  4. Subject: TP6.0 VGA Graphics Question
  5. Message-ID: <75139@hydra.gatech.EDU>
  6. Date: 17 Nov 92 19:10:13 GMT
  7. Organization: Georgia Institute of Technology
  8. Lines: 44
  9.  
  10. Hi --  I am trying to make something work using TP6.0 and BGI graphics
  11. on a PC host.  I am relatively inexperienced with graphics, so it may
  12. take a couple of rounds to close in on my problem.  Suggestions are
  13. welcome.
  14.  
  15. The Program:
  16. I must draw line outlines which may cross and overlay, and must be erased
  17. and redrawn from time to time.  I only get satisfactory drawing when I use
  18. "CopyPut" line drawing.  In order to allow an erasure (without destroying
  19. my background grid), I am drawing on page 1, using SetActivePage(1), drawing,
  20. then copying to four allocated buffers (which tile the screen but stay within
  21. the 64K byte limit for allocated storage), then XORing the buffers to the
  22. screen.  This works OK functionally, but bringing up the new image is a little
  23. slow.  (I actually XOR the image against the invisible buffers, too, to clear
  24. them.)
  25.  
  26. The Problem:
  27. This scheme works fine when I have an EGA adapter, or when I use a VGA
  28. display in either VGAMed or EGAMonoHi modes.  When I try to use VGAHi, the
  29. bottom part of my screen inverts to white in the viewport where I am trying
  30. to use the image paging/buffering scheme.
  31.  
  32. I have been running the code OK in several EGA and VGA-equipped XT and AT
  33. clones, but hit a rock with a Toshiba T2000SXe, which seems to lose track of
  34. screen aspect ratio or corners when I set it to VGAMed, and goes blank when
  35. I use EGAMonoHi -- so my work-arounds _don't_.
  36.  
  37. The Toshiba comes up in BGIDEMO as "EGAVGA" with 16 colors. (It's a monochrome
  38. LCD laptop.)
  39.  
  40. I am using default settings for Stack and Heap limits, though I have 1 Mby
  41. in one of the platforms.  I have played with stack and upper heap limits,
  42. but his doesn't seem to affect the bad screen area.
  43.  
  44. Any suggestions how to use a two-page scheme with VGA, or another work-around?
  45. Thanks.
  46.  
  47. --jmm--
  48.  
  49. -- 
  50. John M. Mills, SRE; Georgia Tech/GTRI/TSDL, Atlanta, GA 30332
  51. uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!jm59
  52. Internet: jm59@prism.gatech.edu
  53. "Democracies generally get the governments they deserve.." --Wilde
  54.