-Load shop and backdrop in 5551. @Jeck feel free to implement the "default as 5551" for jpegs as well if you think it's worth it. I think this change is the safest for the time being, but that's mostly because I'm too lazy to touch JGE
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-10-27 13:50:31 +00:00
parent 3d918cc2b3
commit 75b0044f11
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ void GameApp::Create()
resources.RetrieveTexture("wood.png",RETRIEVE_MANAGE);
resources.RetrieveTexture("gold.png",RETRIEVE_MANAGE);
resources.RetrieveTexture("goldglow.png",RETRIEVE_MANAGE);
resources.RetrieveTexture("backdrop.jpg",RETRIEVE_MANAGE);
resources.RetrieveTexture("backdrop.jpg",RETRIEVE_MANAGE,TEXTURE_SUB_5551);
resources.RetrieveTexture("handback.png",RETRIEVE_MANAGE);
resources.RetrieveTexture("BattleIcon.png",RETRIEVE_MANAGE);
resources.RetrieveTexture("DefenderIcon.png",RETRIEVE_MANAGE);

View File

@@ -42,7 +42,7 @@ void GameStateShop::Start()
mBack = resources.GetQuad("back");
resources.Unmiss("shop.jpg"); //Last resort.
mBgTex = resources.RetrieveTexture("shop.jpg",RETRIEVE_LOCK);
mBgTex = resources.RetrieveTexture("shop.jpg", RETRIEVE_LOCK, TEXTURE_SUB_5551);
if(mBgTex)
mBg = resources.RetrieveQuad("shop.jpg");
else