git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@389 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
IoIxD
2025-10-17 00:56:20 +00:00
parent 899944e571
commit 0c8df8c3db

View File

@@ -1,4 +1,5 @@
/* $Id$ */
#include <Mw/Milsko.h>
#include <stdint.h>
MwWidget vp;
@@ -138,8 +139,8 @@ static void color_wheel_click(MwWidget handle, void* user, void* call) {
(void)a;
hexColor = malloc(8);
char* fgColor = malloc(8);
hexColor = malloc(8);
char* fgColor = malloc(8);
snprintf(hexColor, 8, "#%02X%02X%02X", r, g, b);
int fr = r > 128 ? 0 : 255;