Article View: comp.os.os2.programmer
Article #2358How to control VGA registers?
From: Michael D Kretzer
Date: Mon, 07 Jan 1991 05:33
Date: Mon, 07 Jan 1991 05:33
20 lines
1765 bytes
1765 bytes
I have a burning desire to use the 256-color modes of my Super-VGA card.
My first goal is simple--to write a program to display graphics in the
320 x 200 - 256 color mode. Upon taking a delightful journy through my
OS/2 Toolkit manuals, it doesn't seem very simple. Here are the facts--I have
OS/2 1.1, Extended Edition (my 1.3 update will be in my greedy little
hands by the end of January, I hope)--I know that this version does not
support any 256-color mode in Presentation manager and to my knowledge in
full-screen mode either. It seems that one must use the function VioScrLock
to "lock" the screen so one's program can directly modify the screen
buffer after using VioGetPhysBuf. From there I only see that you then
must set the video mode via the hardware registers and then directly
manipulate the buffer to display graphics.
Unfortunately, I do not have a copy of the VGA technical reference manual,
so I don't know how to go about this. First, is attempting to write this
program worth my effort, or does this latest version of OS/2 clear up the
problem totally? Second, how does one display graphics in 320 x 200,
256-color mode (source code for Microsoft C would be greatly appreciated,
but any other language is fine also).
Technical Details
Message-ID:
<8726@uwm.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!wuarchive!uwm.edu!csd4.csd.uwm.edu!tanithShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!wuarchive!uwm.edu!csd4.csd.uwm.edu!tanith From: tanith@csd4.csd.uwm.edu (Michael D Kretzer) Newsgroups: comp.os.os2.programmer Subject: How to control VGA registers? Message-ID: <8726@uwm.edu> Date: 7 Jan 91 05:33:57 GMT Sender: news@uwm.edu Distribution: na Organization: University of Wisconsin - Milwaukee Lines: 20 Originator: tanith@csd4.csd.uwm.edu