J :
* Fix another set of 64-bits related problems. * The code is now expected to compile on linux-64bits, but as I can't test, I can't be positive about it really compiling, much less working.
This commit is contained in:
@@ -187,10 +187,10 @@ void GameApp::Create()
|
|||||||
JSoundSystem::GetInstance()->SetMusicVolume(options[Options::MUSICVOLUME].number);
|
JSoundSystem::GetInstance()->SetMusicVolume(options[Options::MUSICVOLUME].number);
|
||||||
|
|
||||||
char buf[512];
|
char buf[512];
|
||||||
sprintf(buf, "size of MTGCard : %i\n" , sizeof(MTGCard));
|
sprintf(buf, "size of MTGCard : %lu\n" , sizeof(MTGCard));
|
||||||
OutputDebugString(buf);
|
OutputDebugString(buf);
|
||||||
|
|
||||||
sprintf(buf, "size of CardPrimitive : %i\n" , sizeof(CardPrimitive));
|
sprintf(buf, "size of CardPrimitive : %lu\n" , sizeof(CardPrimitive));
|
||||||
OutputDebugString(buf);
|
OutputDebugString(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,7 +296,7 @@ void GameApp::Update()
|
|||||||
void GameApp::Render()
|
void GameApp::Render()
|
||||||
{
|
{
|
||||||
if (systemError.size()){
|
if (systemError.size()){
|
||||||
fprintf(stderr, systemError.c_str());
|
fprintf(stderr, "%s", systemError.c_str());
|
||||||
JLBFont * mFont= resources.GetJLBFont("simon");
|
JLBFont * mFont= resources.GetJLBFont("simon");
|
||||||
if (mFont) mFont->DrawString(systemError.c_str(),1,1);
|
if (mFont) mFont->DrawString(systemError.c_str(),1,1);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ void WResourceManager::DebugRender(){
|
|||||||
if(textureWCache.totalSize > textureWCache.cacheSize)
|
if(textureWCache.totalSize > textureWCache.cacheSize)
|
||||||
man = 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,
|
textureWCache.cacheItems, textureWCache.managed.size(),textureWCache.maxCached,
|
||||||
misses,textureWCache.cacheSize,textureWCache.maxCacheSize,man);
|
misses,textureWCache.cacheSize,textureWCache.maxCacheSize,man);
|
||||||
font->DrawString(buf, 10,5);
|
font->DrawString(buf, 10,5);
|
||||||
|
|||||||
Reference in New Issue
Block a user