From: <bal...@us...> - 2003-12-15 09:38:13
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/BAMImporter In directory sc8-pr-cvs1:/tmp/cvs-serv17795/BAMImporter Modified Files: BAMImp.cpp Log Message: Warning Fixed : BAMImp.cpp : Fixed many warnings Index: BAMImp.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/BAMImporter/BAMImp.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** BAMImp.cpp 25 Nov 2003 13:48:04 -0000 1.9 --- BAMImp.cpp 15 Dec 2003 09:38:10 -0000 1.10 *************** *** 283,288 **** //printf("Calculating Font Buffer Max Size..."); int w = 0,h = 0; ! for(int i = 0; i < cycles.size(); i++) { ! int index = cycles[i].FirstFrame; if(index >= frames.size()) continue; --- 283,288 ---- //printf("Calculating Font Buffer Max Size..."); int w = 0,h = 0; ! for(unsigned int i = 0; i < cycles.size(); i++) { ! unsigned int index = cycles[i].FirstFrame; if(index >= frames.size()) continue; *************** *** 294,299 **** } //printf("[maxW = %d, maxH = %d]\n", w, h); ! Font * fnt = new Font(w*cycles.size(), h, Palette, true, 0); ! for(int i = 0; i < cycles.size(); i++) { if(cycles[i].FirstFrame >= frames.size()) { fnt->AddChar(NULL, 0, 0, 0, 0); --- 294,299 ---- } //printf("[maxW = %d, maxH = %d]\n", w, h); ! Font * fnt = new Font(w*(int)cycles.size(), h, Palette, true, 0); ! for(unsigned int i = 0; i < cycles.size(); i++) { if(cycles[i].FirstFrame >= frames.size()) { fnt->AddChar(NULL, 0, 0, 0, 0); |