From: blub Date: Wed, 23 Dec 2009 17:10:10 +0000 (+0000) Subject: MSVC doesn't support 'inline' X-Git-Tag: xonotic-v0.1.0preview~996 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=5b46069b0ac5931cfad920d61d828a3adbbc4a76;hp=7660616d5871b00b9be6828d5d1ae581539ed418;p=xonotic%2Fdarkplaces.git MSVC doesn't support 'inline' git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9652 d7cf8633-e32d-0410-b094-e92efae38249 --- 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;