Mail Archives: djgpp/2003/07/23/09:12:19
From here
http://www.delorie.com/djgpp/doc/ug/graphics/vbe20.html
I used code to get protected mode function offsets. And instead of
using vesa_pm_info I just called it VESA_PM.
So, at the part that goes
vesa_pm_info = malloc(r.x.cx); (or in my case VESA_PM =
malloc(r.x.cx))
I got the error:
svga/VBESetup.cpp(12) Error: invalid conversion from `void*' to `
Vesa_Protected_Mode_Info*'
But when I go VESA_PM = (Vesa_Protected_Mode_Info *)malloc(r.x.cx); I
don't get any error messages.
But of course that doesn't necessarily mean that I'm doing this right,
so I'd like to know, is that correct, or else how am I supposed to fix
the problem?
Thanks.
- Raw text -