www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/05/08:11:08

Xref: news2.mv.net comp.os.msdos.djgpp:2458
From: gaghon AT nevada DOT edu (GEORGE GAGHON)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Q] Homemade 16-bits-per-pixel gfx mode?
Date: 4 Apr 1996 07:33:50 GMT
Organization: University of Nevada System Computing Services
Lines: 39
Message-ID: <4jvu0u$29s@news.nevada.edu>
References: <4jtkgr$mfv AT news DOT euro DOT net>
NNTP-Posting-Host: unauthenticated_user AT pioneer DOT nevada DOT edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019