]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use real pixels for r_textshadow instead of virtual ones
authorblub <blub@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Dec 2009 09:51:49 +0000 (09:51 +0000)
committerblub <blub@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Dec 2009 09:51:49 +0000 (09:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9701 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index e6f6c5f78eef3eff436749266663222967d8f4b0..a6108ef9f5182d0e2f202f176c5a0a966bce2542 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -1428,8 +1428,8 @@ float DrawQ_String_Font_Scale(float startx, float starty, const char *text, size
                        // E000..E0FF: emulate old-font characters (to still have smileys and such available)
                        if (shadow)
                        {
-                               x += pix_x * r_textshadow.value;
-                               y += pix_y * r_textshadow.value;
+                               x += 1.0/pix_x * r_textshadow.value;
+                               y += 1.0/pix_y * r_textshadow.value;
                        }
                        if (!fontmap || (ch <= 0xFF && fontmap->glyphs[ch].image) || (ch >= 0xE000 && ch <= 0xE0FF))
                        {
@@ -1574,8 +1574,8 @@ float DrawQ_String_Font_Scale(float startx, float starty, const char *text, size
                        }
                        if (shadow)
                        {
-                               x -= pix_x * r_textshadow.value;
-                               y -= pix_y * r_textshadow.value;
+                               x -= 1.0/pix_x * r_textshadow.value;
+                               y -= 1.0/pix_y * r_textshadow.value;
                        }
                }
        }