Mail Archives: djgpp/1996/04/05/08:11:08
Bram Stolk (bram AT gig DOT nl) wrote:
: I want to use a 16 bit per pixel mode (or else 15 bpp).
: And I would like a resolution of 320x200. (or something close,
: in fact 320x240 would be better because of the square pixels).
:
Hmm, I was able to use a VBE 1.0 and VBE 1.2 to change the rez to
320x200x16bit.
First I made a call to Int 10. x.ax=0x4f00 x.es,x.di 512 byte buffer.
VBE Controler Info
then Int 10, x.ax=0x4f01 x.cx=screen mode x.es,x.di 256 byte buffer.
VBE Mode Info
Finally change the rez with:
Int 10, x.ax=0x4f02 x.bx=screen mode
I do not have any good C code yet as I tested this in a Basic language.
screen modes.
0x10d = 320x200x15bit
0x10e = 320x200x16bit
0x10f = 320x200x24bit (actually 32bit 8-bit unused/mask)
Hope this helps.
VInce
PS All the info was in: PC Video Systems
Richard Wilton
Microsoft Press
ISBN 1-55615-641-3
- Raw text -