[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/video graphic.c
From: |
Jimmy Salmon |
Subject: |
[Stratagus-CVS] stratagus/src/video graphic.c |
Date: |
Mon, 29 Sep 2003 17:07:37 -0400 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Jimmy Salmon <address@hidden> 03/09/29 17:07:37
Modified files:
src/video : graphic.c
Log message:
Don't crash when a graphic doesn't exist, print a useful error message
Patches:
Index: stratagus/src/video/graphic.c
diff -u stratagus/src/video/graphic.c:1.45 stratagus/src/video/graphic.c:1.46
--- stratagus/src/video/graphic.c:1.45 Sat Sep 27 14:26:27 2003
+++ stratagus/src/video/graphic.c Mon Sep 29 17:07:37 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: graphic.c,v 1.45 2003/09/27 18:26:27 jsalmon3 Exp $
+// $Id: graphic.c,v 1.46 2003/09/29 21:07:37 jsalmon3 Exp $
//@{
@@ -723,12 +723,8 @@
char buf[1024];
if (!(graphic = LoadGraphicPNG(LibraryFileName(name, buf)))) {
- /*
fprintf(stderr, "Can't load the graphic `%s'\n", name);
ExitFatal(-1);
- */
- name = NULL; // force crash
- fprintf(stderr, "Can't load the graphic `%s'\n", name);
}
graphic->Pixels = VideoCreateSharedPalette(graphic->Palette);