comparison scn2k/scn2k_grp.cc @ 48:ed6c21dde840

* use correct format (%p) for pointers
author thib
date Wed, 15 Apr 2009 20:28:19 +0000
parents 01aa5ddf7dc8
children 35ce1a30f3f9
comparison
equal deleted inserted replaced
47:5f548e5957a8 48:ed6c21dde840
1375 extern bool grpdump_req; 1375 extern bool grpdump_req;
1376 bool GrpImpl::Wait(unsigned int current_time, Cmd& cmd) { 1376 bool GrpImpl::Wait(unsigned int current_time, Cmd& cmd) {
1377 if (grpdump_req) { 1377 if (grpdump_req) {
1378 grpdump_req = 0; 1378 grpdump_req = 0;
1379 std::map<int,GrpObj>::iterator it; 1379 std::map<int,GrpObj>::iterator it;
1380 fprintf(stderr,"front %08x(%d) / %08x(%d)\n",screen,screen->IsHidden(),screen_front,screen_front->IsHidden()); 1380 fprintf(stderr,"front %p(%d) / %p(%d)\n",screen,screen->IsHidden(),screen_front,screen_front->IsHidden());
1381 for (it=grpobj.begin(); it != grpobj.end(); it++) { 1381 for (it=grpobj.begin(); it != grpobj.end(); it++) {
1382 GrpObj& obj = it->second; 1382 GrpObj& obj = it->second;
1383 GrpObj& parent_obj = grpobj[ ((it->first)/1000) * 1000]; 1383 GrpObj& parent_obj = grpobj[ ((it->first)/1000) * 1000];
1384 if (obj.picture) { 1384 if (obj.picture) {
1385 if (!obj.name.empty()) { 1385 if (!obj.name.empty()) {
1386 fprintf(stderr,"obj %06d(%08x): name %10s pos %d,%d alpha %d (%d/%d/%d)\n", 1386 fprintf(stderr,"obj %06d(%p): name %10s pos %d,%d alpha %d (%d/%d/%d)\n",
1387 it->first,obj.picture,obj.name.c_str(), 1387 it->first,obj.picture,obj.name.c_str(),
1388 obj.PosX(),obj.PosY(),obj.alpha,obj.attr&GrpObj::HIDDEN ? 1 : 0,parent_obj.attr&GrpObj::HIDDEN_GROUP ? 1 : 0,obj.picture->IsHidden()); 1388 obj.PosX(),obj.PosY(),obj.alpha,obj.attr&GrpObj::HIDDEN ? 1 : 0,parent_obj.attr&GrpObj::HIDDEN_GROUP ? 1 : 0,obj.picture->IsHidden());
1389 } else if (!obj.print_moji.empty()) { 1389 } else if (!obj.print_moji.empty()) {
1390 fprintf(stderr,"obj %06d(%08x): name %10s pos %d,%d alpha %d (%d/%d/%d)\n", 1390 fprintf(stderr,"obj %06d(%p): name %10s pos %d,%d alpha %d (%d/%d/%d)\n",
1391 it->first,obj.picture,obj.print_moji.c_str(), 1391 it->first,obj.picture,obj.print_moji.c_str(),
1392 obj.PosX(),obj.PosY(),obj.alpha,obj.attr&GrpObj::HIDDEN ? 1 : 0,parent_obj.attr&GrpObj::HIDDEN_GROUP ? 1 : 0,obj.picture->IsHidden()); 1392 obj.PosX(),obj.PosY(),obj.alpha,obj.attr&GrpObj::HIDDEN ? 1 : 0,parent_obj.attr&GrpObj::HIDDEN_GROUP ? 1 : 0,obj.picture->IsHidden());
1393 } else { 1393 } else {
1394 fprintf(stderr,"obj %06d(%08x): name %10s pos %d,%d alpha %d (%d/%d/%d)\n", 1394 fprintf(stderr,"obj %06d(%p): name %10s pos %d,%d alpha %d (%d/%d/%d)\n",
1395 it->first,obj.picture,"<EMPTY>", 1395 it->first,obj.picture,"<EMPTY>",
1396 obj.PosX(),obj.PosY(),obj.alpha,obj.attr&GrpObj::HIDDEN ? 1 : 0,parent_obj.attr&GrpObj::HIDDEN_GROUP ? 1 : 0,obj.picture->IsHidden()); 1396 obj.PosX(),obj.PosY(),obj.alpha,obj.attr&GrpObj::HIDDEN ? 1 : 0,parent_obj.attr&GrpObj::HIDDEN_GROUP ? 1 : 0,obj.picture->IsHidden());
1397 } 1397 }
1398 } 1398 }
1399 } 1399 }
1400 std::list<PicBase*>::iterator it2; 1400 std::list<PicBase*>::iterator it2;
1401 for (it2=parent.children.begin(); it2!=parent.children.end();it2++) { 1401 for (it2=parent.children.begin(); it2!=parent.children.end();it2++) {
1402 fprintf(stderr,"%08x(%d)\n",*it2,(*it2)->IsHidden()); 1402 fprintf(stderr,"%p(%d)\n",*it2,(*it2)->IsHidden());
1403 } 1403 }
1404 RefreshObj(); 1404 RefreshObj();
1405 1405
1406 } 1406 }
1407 #if 0 1407 #if 0