SDL Fullscreen lacking

Started by
9 comments, last by hms117 19 years, 3 months ago
Hello I having a program using SDL. But when im setting the program to run in fullscreen then the mouse pointer lacking. Here is my code for the vidio settings:

  screen=SDL_SetVideoMode(640,480,32,SDL_SWSURFACE|SDL_FULLSCREEN);
  if ( screen == NULL )
  {
    printf("Unable to set 640x480 video: %s\n", SDL_GetError());
    exit(1);
  }
For the rendering:

void DrawScene()
{
  DrawIMG(back, xpos-2, ypos-2, 132, 132, xpos-2, ypos-2);
  DrawIMG(image, xpos, ypos);
  DrawIMG(undermenu, 0, 326);

  SDL_Flip(screen);
}
Dont know if the last code block is nessesary but i have included if you are going to need it. In advance Thanks.
Advertisement
Tried SDL_ShowCursor()?
The cursor is vissible but it has a tail of it self and blinking
Buy havent tried it will do now.... tomorrow
You also may need to try clearing the screen before you draw. Add this in at the beginning of your render function.

SDL_FillRect( screen, NULL, 0x000000 );


- Drew
Its is still not working! Is SDL to slow or what?
Is it rendering correctly?
Rob Loach [Website] [Projects] [Contact]
I cant see any mistakes.... nothing should be worng
When I started SDL, I was told just to do a custom mouse in FULLSCREEN mode. Some bug in the API. That is just load a bitmap and draw that at the mouse cooridanates.
Hey thanks :D

But is there some way to remove the old courser if im hacing a samller one?
SDL_ShowCursor(false);

This topic is closed to new replies.

Advertisement