propset
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@389 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
899944e571
commit
0c8df8c3db
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue