]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
MSVC doesn't support 'inline'
authorblub <blub@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 Dec 2009 17:10:10 +0000 (17:10 +0000)
committerblub <blub@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 Dec 2009 17:10:10 +0000 (17:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9652 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index 7f33797de48a4490897a4bc8d607332db0c6c493..a891e89e35fc9e86c56dd174b93f9c082f4093ca 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -652,7 +652,7 @@ static dp_font_t *FindFont(const char *title)
        return NULL;
 }
 
-static inline float snap_to_pixel_x(float x, float roundUpAt)
+static float snap_to_pixel_x(float x, float roundUpAt)
 {
        float pixelpos = x * vid.width / vid_conwidth.value;
        int snap = (int) pixelpos;
@@ -665,7 +665,7 @@ static inline float snap_to_pixel_x(float x, float roundUpAt)
        */
 }
 
-static inline float snap_to_pixel_y(float y, float roundUpAt)
+static float snap_to_pixel_y(float y, float roundUpAt)
 {
        float pixelpos = y * vid.height / vid_conheight.value;
        int snap = (int) pixelpos;