Good morning Srs.
I have check by a vesa card
then i have fill a srtuct ModeInfo
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??
why i dont have acess to the video memory?
all the tests return sucess and that mode is suported by the card
and i have VESA ver 3.0
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((unsigned char far*)MK_FP(0xa000,0),0x15,20); } }else printf("Not Vesa\n"); }else printf("Error\n"); getch(); if(oldmode)vbeSetMode(oldmode); }



LinkBack URL
About LinkBacks




