diff options
| author | raysan5 <[email protected]> | 2020-12-24 13:51:24 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-12-24 13:51:24 +0100 |
| commit | b68e522ffc39ebff8268c6b522a3bb965878ad16 (patch) | |
| tree | 2699c3c28b033a5d2d92e8748d308f84e551d1de /examples/shapes/shapes_draw_rectangle_rounded.c | |
| parent | bab1b9c1c5cb416bd9125c1230288859eeafda30 (diff) | |
| download | raylib-b68e522ffc39ebff8268c6b522a3bb965878ad16.tar.gz raylib-b68e522ffc39ebff8268c6b522a3bb965878ad16.zip | |
Updated several files while porting examples to web
Diffstat (limited to 'examples/shapes/shapes_draw_rectangle_rounded.c')
| -rw-r--r-- | examples/shapes/shapes_draw_rectangle_rounded.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/shapes/shapes_draw_rectangle_rounded.c b/examples/shapes/shapes_draw_rectangle_rounded.c index da6ec70a..a798228f 100644 --- a/examples/shapes/shapes_draw_rectangle_rounded.c +++ b/examples/shapes/shapes_draw_rectangle_rounded.c @@ -59,13 +59,13 @@ int main(void) if (drawRoundedRect) DrawRectangleRounded(rec, roundness, segments, Fade(MAROON, 0.2)); if (drawRoundedLines) DrawRectangleRoundedLines(rec,roundness, segments, lineThick, Fade(MAROON, 0.4)); - // Draw GUI controls - //------------------------------------------------------------------------------ - width = GuiSliderBar((Rectangle){ 640, 40, 105, 20 }, "Width", width, 0, GetScreenWidth() - 300, true ); - height = GuiSliderBar((Rectangle){ 640, 70, 105, 20 }, "Height", height, 0, GetScreenHeight() - 50, true); - roundness = GuiSliderBar((Rectangle){ 640, 140, 105, 20 }, "Roundness", roundness, 0.0f, 1.0f, true); - lineThick = GuiSliderBar((Rectangle){ 640, 170, 105, 20 }, "Thickness", lineThick, 0, 20, true); - segments = GuiSliderBar((Rectangle){ 640, 240, 105, 20}, "Segments", segments, 0, 60, true); + // Draw GUI controls + //------------------------------------------------------------------------------ + width = GuiSliderBar((Rectangle){ 640, 40, 105, 20 }, "Width", NULL, width, 0, GetScreenWidth() - 300); + height = GuiSliderBar((Rectangle){ 640, 70, 105, 20 }, "Height", NULL, height, 0, GetScreenHeight() - 50); + roundness = GuiSliderBar((Rectangle){ 640, 140, 105, 20 }, "Roundness", NULL, roundness, 0.0f, 1.0f); + lineThick = GuiSliderBar((Rectangle){ 640, 170, 105, 20 }, "Thickness", NULL, lineThick, 0, 20); + segments = GuiSliderBar((Rectangle){ 640, 240, 105, 20}, "Segments", NULL, segments, 0, 60); drawRoundedRect = GuiCheckBox((Rectangle){ 640, 320, 20, 20 }, "DrawRoundedRect", drawRoundedRect); drawRoundedLines = GuiCheckBox((Rectangle){ 640, 350, 20, 20 }, "DrawRoundedLines", drawRoundedLines); |
