mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-26 19:13:05 +00:00
propset
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@389 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
MwWidget vp;
|
MwWidget vp;
|
||||||
@@ -138,8 +139,8 @@ static void color_wheel_click(MwWidget handle, void* user, void* call) {
|
|||||||
|
|
||||||
(void)a;
|
(void)a;
|
||||||
|
|
||||||
hexColor = malloc(8);
|
hexColor = malloc(8);
|
||||||
char* fgColor = malloc(8);
|
char* fgColor = malloc(8);
|
||||||
snprintf(hexColor, 8, "#%02X%02X%02X", r, g, b);
|
snprintf(hexColor, 8, "#%02X%02X%02X", r, g, b);
|
||||||
|
|
||||||
int fr = r > 128 ? 0 : 255;
|
int fr = r > 128 ? 0 : 255;
|
||||||
|
|||||||
Reference in New Issue
Block a user