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