Mail Archives: djgpp/1997/07/21/21:47:38
writes:
>Hello, I can't seem to get the video mode list from the Info Block. I
>know its a real mode pointer and I can get the OEM String successfully,
>but the video mode list isn't right, heres the code:
[snip]
> while(mode != 0xffff) {
> printf("%#x\n", mode); // debug
> if(GetVideoModeInfo(mode)) {
This is the trouble: some VESA drivers reuse a single block of memory
for the get driver info and get mode info calls, so when you query the
attributes of each individual mode it will clobber the global mode list.
You should copy the entire list into your own address space before you
call any other VESA functions...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -