Revision: 7005
http://playerstage.svn.sourceforge.net/playerstage/?rev=7005&view=rev
Author: alexcb
Date: 2008-09-09 02:52:01 +0000 (Tue, 09 Sep 2008)
Log Message:
-----------
improved error when an image cant be found
Modified Paths:
--------------
code/stage/trunk/libstage/stage.cc
Modified: code/stage/trunk/libstage/stage.cc
===================================================================
--- code/stage/trunk/libstage/stage.cc 2008-09-04 03:47:55 UTC (rev 7004)
+++ code/stage/trunk/libstage/stage.cc 2008-09-09 02:52:01 UTC (rev 7005)
@@ -420,7 +420,10 @@
const int threshold = 127;
Fl_Shared_Image *img = Fl_Shared_Image::get(filename);
- assert( img );
+ if( img == NULL ) {
+ std::cerr << "failed to open file: " << filename << std::endl;
+ assert( img );
+ }
//printf( "loaded image %s w %d h %d d %d count %d ld %d\n",
// filename, img->w(), img->h(), img->d(), img->count(), img->ld() );
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit