Erwan
-attempt at fixing shop crash introduced in r1231 (size needed in ram divided by 4)
This commit is contained in:
BIN
projects/mtg/bin/Res/graphics/shop_light.jpg
Normal file
BIN
projects/mtg/bin/Res/graphics/shop_light.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
@@ -135,7 +135,7 @@ public:
|
|||||||
JSample * RetrieveSample(string filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
JSample * RetrieveSample(string filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
||||||
JTexture * RetrieveTexture(string filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
JTexture * RetrieveTexture(string filename, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
||||||
JQuad * RetrieveQuad(string filename, float offX=0.0f, float offY=0.0f, float width=0.0f, float height=0.0f, string resname="", int style = RETRIEVE_LOCK, int submode = CACHE_NORMAL, int id = 0);
|
JQuad * RetrieveQuad(string filename, float offX=0.0f, float offY=0.0f, float width=0.0f, float height=0.0f, string resname="", int style = RETRIEVE_LOCK, int submode = CACHE_NORMAL, int id = 0);
|
||||||
JQuad * RetrieveTempQuad(string filename);
|
JQuad * RetrieveTempQuad(string filename, int submode = CACHE_NORMAL);
|
||||||
hgeParticleSystemInfo * RetrievePSI(string filename, JQuad * texture, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
hgeParticleSystemInfo * RetrievePSI(string filename, JQuad * texture, int style = RETRIEVE_NORMAL, int submode = CACHE_NORMAL);
|
||||||
int RetrieveError();
|
int RetrieveError();
|
||||||
|
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ void ShopItems::Render(){
|
|||||||
if (mBgAA)
|
if (mBgAA)
|
||||||
r->RenderQuad(mBgAA,0,SCREEN_HEIGHT-128);
|
r->RenderQuad(mBgAA,0,SCREEN_HEIGHT-128);
|
||||||
|
|
||||||
JQuad * quad = resources.RetrieveTempQuad("shop_light.png");
|
JQuad * quad = resources.RetrieveTempQuad("shop_light.jpg",TEXTURE_SUB_5551);
|
||||||
if (quad){
|
if (quad){
|
||||||
r->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
|
r->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
|
||||||
quad->SetColor(ARGB(lightAlpha,255,255,255));
|
quad->SetColor(ARGB(lightAlpha,255,255,255));
|
||||||
|
|||||||
@@ -272,8 +272,8 @@ JQuad * WResourceManager::GetQuad(int id){
|
|||||||
return jtex->GetQuad(managedQuads[id]->resname);
|
return jtex->GetQuad(managedQuads[id]->resname);
|
||||||
}
|
}
|
||||||
|
|
||||||
JQuad * WResourceManager::RetrieveTempQuad(string filename){
|
JQuad * WResourceManager::RetrieveTempQuad(string filename,int submode){
|
||||||
return RetrieveQuad(filename,0,0,0,0,"temporary",RETRIEVE_NORMAL);
|
return RetrieveQuad(filename,0,0,0,0,"temporary",RETRIEVE_NORMAL,submode);
|
||||||
}
|
}
|
||||||
|
|
||||||
JQuad * WResourceManager::RetrieveQuad(string filename, float offX, float offY, float width, float height, string resname, int style, int submode, int id){
|
JQuad * WResourceManager::RetrieveQuad(string filename, float offX, float offY, float width, float height, string resname, int style, int submode, int id){
|
||||||
|
|||||||
Reference in New Issue
Block a user