From 5b46069b0ac5931cfad920d61d828a3adbbc4a76 Mon Sep 17 00:00:00 2001 From: blub Date: Wed, 23 Dec 2009 17:10:10 +0000 Subject: [PATCH] MSVC doesn't support 'inline' git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9652 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl_draw.c b/gl_draw.c index 7f33797d..a891e89e 100644 --- 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; -- 2.39.2