Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL Fullscreen lacking

Started by hms117 Jan 16, 2005 at 2:02 PM 9 replies 2.1k views
Original Post
hms117
hms117
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.
Kylotan
Kylotan
Tried SDL_ShowCursor()?
hms117
hms117
The cursor is vissible but it has a tail of it self and blinking
Buy havent tried it will do now.... tomorrow
Drew_Benton
Drew_Benton
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
hms117
hms117
Its is still not working! Is SDL to slow or what?
hms117
hms117
I cant see any mistakes.... nothing should be worng
rtw1701
rtw1701
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.
hms117
hms117
Hey thanks :D

But is there some way to remove the old courser if im hacing a samller one?
hms117
hms117
Thank you!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.