delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/27/21:38:22

From: Alex Weekley <rednax89 AT airmail DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Resolve a bet : Simple hello world sample at 640x480?
Date: Thu, 26 Mar 1998 21:56:58 -0600
Organization: INTERNET AMERICA
Lines: 28
Message-ID: <3D48594531788633.63F6747410EACBD2.C650153E16F65554@library-proxy.airnews.net>
References: <3515A066 DOT 736CFC37 AT netrover DOT com> <ovQ5vHAi5aF1EwDP AT talula DOT demon DOT co DOT uk>
Reply-To: rednax89 AT airmail DOT net
NNTP-Proxy-Relay: library.airnews.net
NNTP-Posting-Time: Thu Mar 26 21:59:39 1998
NNTP-Posting-Host: gw1-ppp82.its.iadfw.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Shawn Hargreaves wrote:
> 
> Nicolas Blais writes:
> >Can anyone write me a full, simple c++ code hello world program running
> >at 640x480 without using allegro?  My friend here says that it's
> >impossible and I bet with him 20$ that it's possible.  As a proof, I
> >have to show him the code.  So, anyone know how?
> 
> I think you owe $20 to your friend :-)
> 
> It is easy enough to set a 640x480x256 video mode, and drawing onto the
> screen isn't too bad as long as you only want to reference the top 100
> lines (you won't need to bother with any bank switching). But to draw
> text you need a font, and because many cards don't support the BIOS text
> output routines in VESA modes, you will need to include your own
> character set data and drawing functions: a fairly hefty chunk of code!
> 
> --
> Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
> "Pigs use it for a tambourine" - Frank Zappa

Actually, since he didn't say 256 colors, you can do it really easily in
16! Video mode 0eh I think.
-- 
Alex Weekley
mailto:rednax89 AT airmail DOT net
http://web2.airmail.net/rednax89/
A.K.A Alejandro

- Raw text -


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