Erwan
-attempt at fixing shop crash introduced in r1231 (size needed in ram divided by 4)
This commit is contained in:
@@ -298,7 +298,7 @@ void ShopItems::Render(){
|
||||
if (mBgAA)
|
||||
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){
|
||||
r->SetTexBlend(BLEND_SRC_ALPHA, BLEND_ONE);
|
||||
quad->SetColor(ARGB(lightAlpha,255,255,255));
|
||||
|
||||
@@ -272,8 +272,8 @@ JQuad * WResourceManager::GetQuad(int id){
|
||||
return jtex->GetQuad(managedQuads[id]->resname);
|
||||
}
|
||||
|
||||
JQuad * WResourceManager::RetrieveTempQuad(string filename){
|
||||
return RetrieveQuad(filename,0,0,0,0,"temporary",RETRIEVE_NORMAL);
|
||||
JQuad * WResourceManager::RetrieveTempQuad(string filename,int submode){
|
||||
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){
|
||||
|
||||
Reference in New Issue
Block a user