X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=gl_draw.c;h=6eb9378fab042c45f1be0fe5c0f0bda3e7c71c92;hp=b6d8d065000ea5ebab0d7b3317daf9c3e676b228;hb=4915376d9debe00084f449c65dced6cc3d937617;hpb=8e986191acf8ad593f6ecf5a5adcd0934534264f diff --git a/gl_draw.c b/gl_draw.c index b6d8d065..6eb9378f 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -599,8 +599,8 @@ void DrawQ_Pic(float x, float y, cachepic_t *pic, float width, float height, flo // AK07: lets be texel correct on the corners { - float horz_offset = 0.5f / width; - float vert_offset = 0.5f / height; + float horz_offset = 0.5f / pic->width; + float vert_offset = 0.5f / pic->height; floats[12] = 0.0f + horz_offset;floats[13] = 0.0f + vert_offset; floats[14] = 1.0f - horz_offset;floats[15] = 0.0f + vert_offset; @@ -855,8 +855,8 @@ void DrawQ_SuperPic(float x, float y, cachepic_t *pic, float width, float height // AK07: lets be texel correct on the corners { - float horz_offset = 0.5f / width; - float vert_offset = 0.5f / height; + float horz_offset = 0.5f / pic->width; + float vert_offset = 0.5f / pic->height; floats[12] = s1 + horz_offset;floats[13] = t1 + vert_offset; floats[14] = s2 - horz_offset;floats[15] = t2 + vert_offset;