From 4aefd8945030f9a587a23d74fa93fb9efba6c711 Mon Sep 17 00:00:00 2001 From: Kyle Gretchev Date: Sat, 15 Feb 2014 11:18:37 -0500 Subject: [PATCH] Added float cast to viewport size Added float cast to remove compiler warnings. --- src/nanovg_gl3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nanovg_gl3.h b/src/nanovg_gl3.h index 4a83d55..5b5c447 100644 --- a/src/nanovg_gl3.h +++ b/src/nanovg_gl3.h @@ -620,8 +620,8 @@ static int glnvg__setupPaint(struct GLNVGcontext* gl, struct NVGpaint* paint, st static void glnvg__renderViewport(void* uptr, int width, int height) { struct GLNVGcontext* gl = (struct GLNVGcontext*)uptr; - gl->viewWidth = width; - gl->viewHeight = height; + gl->viewWidth = (float)width; + gl->viewHeight = (float)height; } static void glnvg__renderFlush(void* uptr)