git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10947
d7cf8633-e32d-0410-b094-
e92efae38249
if (th > sh) th = sh;
if (tw < 1 || th < 1)
return;
if (th > sh) th = sh;
if (tw < 1 || th < 1)
return;
+ sy1 = sheight - 1 - sy1;
- memcpy(tpixels + ((ty1 + y) * twidth + tx1), spixels + ((sy1 + y) * swidth + sx1), tw*4);
+ memcpy(tpixels + ((ty1 + y) * twidth + tx1), spixels + ((sy1 - y) * swidth + sx1), tw*4);
if (texture->mipmaps > 1)
DPSOFTRAST_Texture_CalculateMipmaps(index);
}
if (texture->mipmaps > 1)
DPSOFTRAST_Texture_CalculateMipmaps(index);
}