TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: Owen Kaluza
date: 1996-01-09 16:51:04
subject: Writing a pixel in VGA 640x480x16 m

Can anyone tell me how to write a pixel directly to the video memory
in VGA 640x480x16 mode, i know how to do it in 320x200x256 but
my attempts to adapt it to work in 640x480x16 have failed, below is the
function I have been using in 320x200x256 mode:

char far *screen=MK_FP(0xA000,0);
 
void SetPoint(int x, int y, int c)
{
     *(screen + (y * 320) + x) = c;
}

Thanks,

Owen Kaluza


--- Maximus 3.00
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 711/401 409 410 413 430
SEEN-BY: 711/510 808 809 932 934 712/515 713/888 714/906 800/1 7877/2809
@PATH: 635/544 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.