haw to write a pixel in mode 0x101

This is a discussion on haw to write a pixel in mode 0x101 within the C++ Programming forums, part of the General Programming Boards category; Good morning Srs. sorry i put this in wrong place I have check by a vesa card then i have ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Location
    Portugal
    Posts
    25

    Question haw to write a pixel in mode 0x101

    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);
    }
    Last edited by joseCarlos; 10-27-2009 at 02:19 AM. Reason: sorry, i put this in wrong place

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  2. opengl help
    By heat511 in forum Game Programming
    Replies: 4
    Last Post: 04-05-2004, 01:08 AM
  3. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21