New to SDL

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Nov 2007
Posts: 979
Reputation: mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice 
Solved Threads: 209
mitrmkar mitrmkar is offline Offline
Posting Shark

Re: New to SDL

 
1
  #11
Nov 7th, 2008
Well, by doing the following ...

  1. ...
  2. background = load_image("background.bmp");
  3.  
  4. if(background == NULL)
  5. {
  6. // load_image() failed ...
  7. cout << "load_image() failed, error: " << SDL_GetError() << endl;
  8. }
  9.  
  10. apply_surface(100, 100, message, screen);
  11. ...

I got output as follows:

load_image() failed, error: File is not a Windows BMP file
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 81
Reputation: minas1 is an unknown quantity at this point 
Solved Threads: 8
minas1's Avatar
minas1 minas1 is offline Offline
Junior Poster in Training

Re: New to SDL

 
1
  #12
Nov 7th, 2008
Is it an image you changed manually from .jpg (for example) to bmp by just renaming the file?
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 10
Reputation: Xarver is an unknown quantity at this point 
Solved Threads: 0
Xarver Xarver is offline Offline
Newbie Poster

Re: New to SDL

 
0
  #13
Nov 7th, 2008
Ah, GIMP didn't support BMP, but I saved it anyway... I'm going to make a new background.
Thanks for the solution!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC