diff --git a/projects/mtg/src/GameApp.cpp b/projects/mtg/src/GameApp.cpp index 9a6613b51..e6b1661e1 100644 --- a/projects/mtg/src/GameApp.cpp +++ b/projects/mtg/src/GameApp.cpp @@ -187,10 +187,10 @@ void GameApp::Create() JSoundSystem::GetInstance()->SetMusicVolume(options[Options::MUSICVOLUME].number); char buf[512]; - sprintf(buf, "size of MTGCard : %i\n" , sizeof(MTGCard)); + sprintf(buf, "size of MTGCard : %lu\n" , sizeof(MTGCard)); OutputDebugString(buf); - sprintf(buf, "size of CardPrimitive : %i\n" , sizeof(CardPrimitive)); + sprintf(buf, "size of CardPrimitive : %lu\n" , sizeof(CardPrimitive)); OutputDebugString(buf); } @@ -296,7 +296,7 @@ void GameApp::Update() void GameApp::Render() { if (systemError.size()){ - fprintf(stderr, systemError.c_str()); + fprintf(stderr, "%s", systemError.c_str()); JLBFont * mFont= resources.GetJLBFont("simon"); if (mFont) mFont->DrawString(systemError.c_str(),1,1); return; diff --git a/projects/mtg/src/WResourceManager.cpp b/projects/mtg/src/WResourceManager.cpp index 479403655..7826fe4d7 100644 --- a/projects/mtg/src/WResourceManager.cpp +++ b/projects/mtg/src/WResourceManager.cpp @@ -57,7 +57,7 @@ void WResourceManager::DebugRender(){ if(textureWCache.totalSize > textureWCache.cacheSize) man = textureWCache.totalSize - textureWCache.cacheSize; - sprintf(buf,"Textures %u+%u (of %u) items (%u misses), Pixels: %lu (of %lu) + %lu", + sprintf(buf,"Textures %u+%lu (of %u) items (%u misses), Pixels: %lu (of %lu) + %lu", textureWCache.cacheItems, textureWCache.managed.size(),textureWCache.maxCached, misses,textureWCache.cacheSize,textureWCache.maxCacheSize,man); font->DrawString(buf, 10,5);