From 65e47a57eb5269bedbda876cd05a5567a1838e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 1 Aug 2015 23:20:52 -0700 Subject: [PATCH] Replaced missing VS2012 function. --- examples/20-nanovg/nanovg.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/20-nanovg/nanovg.cpp b/examples/20-nanovg/nanovg.cpp index 4afc5249..c505b842 100644 --- a/examples/20-nanovg/nanovg.cpp +++ b/examples/20-nanovg/nanovg.cpp @@ -1076,11 +1076,11 @@ void drawParagraph(struct NVGcontext* vg, float x, float y, float width, float h nvgBeginPath(vg); nvgFillColor(vg, nvgRGBA(255,192,0,255) ); nvgRoundedRect(vg - , roundf(bounds[0])-4.0f - , roundf(bounds[1])-2.0f - , roundf(bounds[2]-bounds[0])+8.0f - , roundf(bounds[3]-bounds[1])+4.0f - , (roundf(bounds[3]-bounds[1])+4.0f)/2.0f-1.0f + , bx::fround(bounds[0])-4.0f + , bx::fround(bounds[1])-2.0f + , bx::fround(bounds[2]-bounds[0])+8.0f + , bx::fround(bounds[3]-bounds[1])+4.0f + , (bx::fround(bounds[3]-bounds[1])+4.0f)/2.0f-1.0f ); nvgFill(vg); @@ -1098,10 +1098,10 @@ void drawParagraph(struct NVGcontext* vg, float x, float y, float width, float h nvgBeginPath(vg); nvgFillColor(vg, nvgRGBA(220,220,220,255) ); nvgRoundedRect(vg - , roundf(bounds[0]-2.0f) - , roundf(bounds[1]-2.0f) - , roundf(bounds[2]-bounds[0])+4.0f - , roundf(bounds[3]-bounds[1])+4.0f + , bx::fround(bounds[0]-2.0f) + , bx::fround(bounds[1]-2.0f) + , bx::fround(bounds[2]-bounds[0])+4.0f + , bx::fround(bounds[3]-bounds[1])+4.0f , 3.0f ); px = float( (int)( (bounds[2]+bounds[0])/2) );