mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-24 21:59:45 -04:00
Replaced missing VS2012 function.
This commit is contained in:
parent
cfb8e8a13a
commit
65e47a57eb
1 changed files with 9 additions and 9 deletions
|
@ -1076,11 +1076,11 @@ void drawParagraph(struct NVGcontext* vg, float x, float y, float width, float h
|
||||||
nvgBeginPath(vg);
|
nvgBeginPath(vg);
|
||||||
nvgFillColor(vg, nvgRGBA(255,192,0,255) );
|
nvgFillColor(vg, nvgRGBA(255,192,0,255) );
|
||||||
nvgRoundedRect(vg
|
nvgRoundedRect(vg
|
||||||
, roundf(bounds[0])-4.0f
|
, bx::fround(bounds[0])-4.0f
|
||||||
, roundf(bounds[1])-2.0f
|
, bx::fround(bounds[1])-2.0f
|
||||||
, roundf(bounds[2]-bounds[0])+8.0f
|
, bx::fround(bounds[2]-bounds[0])+8.0f
|
||||||
, roundf(bounds[3]-bounds[1])+4.0f
|
, bx::fround(bounds[3]-bounds[1])+4.0f
|
||||||
, (roundf(bounds[3]-bounds[1])+4.0f)/2.0f-1.0f
|
, (bx::fround(bounds[3]-bounds[1])+4.0f)/2.0f-1.0f
|
||||||
);
|
);
|
||||||
nvgFill(vg);
|
nvgFill(vg);
|
||||||
|
|
||||||
|
@ -1098,10 +1098,10 @@ void drawParagraph(struct NVGcontext* vg, float x, float y, float width, float h
|
||||||
nvgBeginPath(vg);
|
nvgBeginPath(vg);
|
||||||
nvgFillColor(vg, nvgRGBA(220,220,220,255) );
|
nvgFillColor(vg, nvgRGBA(220,220,220,255) );
|
||||||
nvgRoundedRect(vg
|
nvgRoundedRect(vg
|
||||||
, roundf(bounds[0]-2.0f)
|
, bx::fround(bounds[0]-2.0f)
|
||||||
, roundf(bounds[1]-2.0f)
|
, bx::fround(bounds[1]-2.0f)
|
||||||
, roundf(bounds[2]-bounds[0])+4.0f
|
, bx::fround(bounds[2]-bounds[0])+4.0f
|
||||||
, roundf(bounds[3]-bounds[1])+4.0f
|
, bx::fround(bounds[3]-bounds[1])+4.0f
|
||||||
, 3.0f
|
, 3.0f
|
||||||
);
|
);
|
||||||
px = float( (int)( (bounds[2]+bounds[0])/2) );
|
px = float( (int)( (bounds[2]+bounds[0])/2) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue