From 5890a2aaa79ec3c0a8186bea538a668eb5bf25b4 Mon Sep 17 00:00:00 2001 From: Froxwin <56168224+Froxwin@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:22:08 +0000 Subject: [PATCH] fix: color wheel alpha assignment --- src/application/applicationstate.c | 2 +- src/ui/widgets/colorwheel.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/application/applicationstate.c b/src/application/applicationstate.c index 28b5735..51830b6 100644 --- a/src/application/applicationstate.c +++ b/src/application/applicationstate.c @@ -143,7 +143,7 @@ void vektor_appstate_new(VektorWidgetState* wstate, VektorAppState* stateOut) { *stateOut->shapeBuffer = (VektorShapeBuffer){0}; stateOut->canvas = malloc(sizeof(VektorCanvas)); stateOut->widgetState = wstate; - stateOut->currentColor = vektor_color_blank; + stateOut->currentColor = vektor_color_solid(0, 0, 0); stateOut->selectedShape = NULL; vektor_canvas_init(wstate, stateOut->canvas, stateOut->shapeBuffer); diff --git a/src/ui/widgets/colorwheel.c b/src/ui/widgets/colorwheel.c index baa27ad..19487c8 100644 --- a/src/ui/widgets/colorwheel.c +++ b/src/ui/widgets/colorwheel.c @@ -362,7 +362,8 @@ VektorColor vektor_color_wheel_get_color(VektorColorWheel* wheel) { return (VektorColor) { .r = (unsigned char)(r*255), .g = (unsigned char)(g*255), - .b = (unsigned char)(b*255) + .b = (unsigned char)(b*255) , + .a = 255 }; }