From 1c3c3494f633e651b9d88483eb381060f736c2cc Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Tue, 19 Mar 2024 12:01:36 +0800 Subject: [PATCH] Use solidXXX instead of fillXXX turns out fillXXX has outlines --- render_util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/render_util.cpp b/render_util.cpp index 5f69ca0..b4323c9 100644 --- a/render_util.cpp +++ b/render_util.cpp @@ -80,7 +80,7 @@ void render_SetModes(FillMode mode, TimePoint since) { } void render_FillScreen(FillMode mode, TimePoint since) { - fillrectangle(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); + solidrectangle(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); } void render_FillRectW(App *app, Box2 rect, FillMode mode, TimePoint since) { @@ -88,7 +88,7 @@ void render_FillRectW(App *app, Box2 rect, FillMode mode, TimePoint since) { rect = camera_TransformBox2(app->camera, rect); else fprintf(stderr, "[WARN][render_FillRectW] called without an active camera system\n"); - fillrectangle( + solidrectangle( (int)round(rect.lefttop.x), (int)round(rect.lefttop.y), (int)round(rect.lefttop.x + rect.size.x), @@ -101,7 +101,7 @@ void render_FillCircleW(App *app, Vec2 center, double radius, FillMode mode, Tim radius = camera_TransformSize(app->camera, vec2(radius, 0)).x; // TODO non-aspect scaling } else fprintf(stderr, "[WARN][render_FillCircleW] called without an active camera system\n"); - fillcircle( + solidcircle( (int)round(center.x), (int)round(center.y), (int)round(radius));