Fix C++ compat.

This commit is contained in:
Themaister 2013-01-12 00:33:06 +01:00
parent 685a0d581f
commit 9b12e9b3b4

View File

@ -53,7 +53,7 @@ static void *font_renderer_init(const char *font_path, float font_size)
if (!handle)
return NULL;
handle->scale_factor = (unsigned)round(font_size / FONT_HEIGHT);
handle->scale_factor = (unsigned)roundf(font_size / FONT_HEIGHT);
if (!handle->scale_factor)
handle->scale_factor = 1;