Jump to content
  • Advertisement
Sign in to follow this  
hms117

SDL Fullscreen lacking

This topic is 4933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
The cursor is vissible but it has a tail of it self and blinking
Buy havent tried it will do now.... tomorrow

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!