Good morning Srs.
sorry i put this in wrong place
I have check by a vesa card
then i have fill a stuct
vbeGetModeInfo(0x101,&ModeInfo)
and vbeSetMode(0x101);
now i set some bytes in video memory lyke
_fmemset(far*ptr,val,len)
but i just see the screen all black
and i dont figure out why
can some one give me a idea??
thanks good day to you
Code:
void main(){
short oldmode=0;
vbeInfo info;
vbeModeInfo modeInfo;
if(vbeGetInfo(&info)){
if(memcmp(info.vesa,"VESA",4)==0){
vbePrintInfo(&info);
getch();
if(vbeGetModeInfo(0x101,&modeInfo)){
vbeGetMode(&oldmode);
vbeSetMode(0x101);
_fmemset(MK_FP(0xa000,0),0x15,20);
}
}else printf("Not Vesa\n");
}else printf("Error\n");
getch();
if(oldmode)vbeSetMode(oldmode);
}