From: Klaus R. <kre...@us...> - 2007-04-29 15:19:07
|
Update of /cvsroot/ming/ming In directory sc8-pr-cvs16:/tmp/cvs-serv23453 Modified Files: mingpp.h Log Message: improved bitmap file format recognition Index: mingpp.h =================================================================== RCS file: /cvsroot/ming/ming/mingpp.h,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** mingpp.h 29 Apr 2007 14:03:42 -0000 1.43 --- mingpp.h 29 Apr 2007 15:19:03 -0000 1.44 *************** *** 683,692 **** if(strlen(filename) > 4) { ! if(strcmp(filename+strlen(filename)-4, ".dbl") == 0) this->bitmap = (c_SWFBitmap) newSWFDBLBitmap(fopen(filename, "rb")); #if USE_GIF ! else if(strcmp(filename+strlen(filename)-4, ".gif") == 0) this->bitmap = (c_SWFBitmap) newSWFDBLBitmapData_fromGifFile(filename); --- 683,692 ---- if(strlen(filename) > 4) { ! if(strcasecmp(filename+strlen(filename)-4, ".dbl") == 0) this->bitmap = (c_SWFBitmap) newSWFDBLBitmap(fopen(filename, "rb")); #if USE_GIF ! else if(strcasecmp(filename+strlen(filename)-4, ".gif") == 0) this->bitmap = (c_SWFBitmap) newSWFDBLBitmapData_fromGifFile(filename); *************** *** 695,704 **** #if USE_PNG ! else if(strcmp(filename+strlen(filename)-4, ".png") == 0) this->bitmap = (c_SWFBitmap) newSWFDBLBitmapData_fromPngFile( filename ); #endif ! else if(strcmp(filename+strlen(filename)-4, ".jpg") == 0) { if(alpha != NULL) --- 695,705 ---- #if USE_PNG ! else if(strcasecmp(filename+strlen(filename)-4, ".png") == 0) this->bitmap = (c_SWFBitmap) newSWFDBLBitmapData_fromPngFile( filename ); #endif ! else if(strcasecmp(filename+strlen(filename)-4, ".jpg") == 0 || ! (strlen(filename) > 5 && (strcasecmp(filename+strlen(filename)-5, ".jpeg") == 0))) { if(alpha != NULL) |