delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/26/15:55:16

X-Originating-IP: [195.67.197.106]
From: "Hans Jorgensen" <kruse82 AT hotmail DOT com>
To: djgpp AT delorie DOT com
Subject: VESA-problems
Date: Mon, 26 Feb 2001 20:51:15
Mime-Version: 1.0
Message-ID: <F133gmSknvh7wFI1ZG50001811f@hotmail.com>
X-OriginalArrivalTime: 26 Feb 2001 20:51:15.0290 (UTC) FILETIME=[DC1BE3A0:01C0A035]
Reply-To: djgpp AT delorie DOT com

Hello djgpp AT delorie DOT com!
On the page
http://www.delorie.com/djgpp/doc/ug/graphics/vesa.html
I have learnt some about the VESA graphics modes.
I have a problem when I´m using the VESA graphic modes for my 
djgpp-programming.
I have followed the example on the page, and I manage to get a higher 
resolution, for example 800*600, thanks to VESA, and I can also put a pixel 
on the screen. The problem is the copy_to_vesa_screen function, the function 
that makes the drawing process faster. When I´m executing the program with 
that function I can no longer see the pixel. I think the problem is that I 
don´t know what to write in the line where I call the function, the ????? 
below shows what I´m meaning:

copy_to_vesa_screen(?????, 480000);

the void-line looks like this:

void copy_to_vesa_screen(char *memory_buffer, int screen_size)

So, what shall I write where the char *memory_buffer stands? Is it the 
address to the memory, and if it is, how can I find out what that address 
is?

I would be very happy for an answer, because I don’t know what to do.
Thank you!

Best regards
Hans Jörgensen, Alafors, Sweden  E-mail: kruse82 AT hotmail DOT com


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

- Raw text -


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