mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed sprite rendering. Closes #44
This commit is contained in:
parent
a00fbf1121
commit
8eaa040e3e
|
@ -30,9 +30,9 @@ void CRenderTools::SelectSprite(CDataSprite *pSpr, int Flags, int sx, int sy)
|
|||
gs_SpriteHScale = h/f;
|
||||
|
||||
float x1 = x/(float)cx;
|
||||
float x2 = (x+w)/(float)cx;
|
||||
float x2 = (x+w-1/32.0f)/(float)cx;
|
||||
float y1 = y/(float)cy;
|
||||
float y2 = (y+h)/(float)cy;
|
||||
float y2 = (y+h-1/32.0f)/(float)cy;
|
||||
float Temp = 0;
|
||||
|
||||
if(Flags&SPRITE_FLAG_FLIP_Y)
|
||||
|
|
Loading…
Reference in a new issue