Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#Actualhikarihe

Posted 28 February 2013 - 01:17 PM

// set program icon
SDL_WM_SetIcon( SDL_LoadBMP("hello.bmp"), NULL );

 

try this to see if it is an image problem or a screen problem

 

// if screen didn't load
if ( screen == NULL )
{

	// set caption to "screen not working"
	SDL_WM_SetCaption( "screen not working", NULL );
}

 

also try this to check if the screen loads. you can do the same for the hello SDL_Surface


#2hikarihe

Posted 28 February 2013 - 01:16 PM

// set program icon
SDL_WM_SetIcon( SDL_LoadBMP("hello.bmp"), NULL );

 

try this to see if it is an image problem or a screen problem

 

// if screen didn't load
if ( screen == NULL )
{

	// set caption to "screen not working"
	SDL_WM_SetCaption( "screen not working", NULL );
}

 

also try this to check if the screen loads


#1hikarihe

Posted 28 February 2013 - 01:12 PM

// set program icon
SDL_WM_SetIcon( SDL_LoadBMP("hello.bmp"), NULL );

 

try this to see if it is an image problem or a screen problem


PARTNERS