* Some resource path cleaning.
* A little bugfix.
This commit is contained in:
jean.chalard
2009-01-01 23:26:36 +00:00
parent 64c7bdf42d
commit 7c0c199175
+5 -5
View File
@@ -118,18 +118,14 @@ JTexture::~JTexture()
void JTexture::UpdateBits(int x, int y, int width, int height, PIXEL_TYPE* bits)
{
//TODO: Is this normal that width is not used ??
for (int i=0;i<height;i++)
{
for (int j=0;j<height;j++)
for (int j=0;j<width;j++)
{
SwizzlePlot((u8*)mBits, *(bits++), (x+j)*PIXEL_SIZE, y+i, mTexWidth*PIXEL_SIZE);
}
}
sceKernelDcacheWritebackAll();
}
//////////////////////////////////////////////////////////////////////////
@@ -986,7 +982,11 @@ void JRenderer::LoadJPG(TextureInfo &textureInfo, const char *filename, int mode
{
textureInfo.mBits = NULL;
char filenamenew[4096];
#ifdef RESPATH
sprintf(filenamenew, RESPATH"/%s", filename);
#else
sprintf(filenamenew, "Res/%s", filename);
#endif
bool useVideoRAM = (mode == TEX_TYPE_USE_VRAM);