Sign in to follow this  

SDL Fullscreen lacking

This topic is 4717 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
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

This topic is 4717 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this