-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ColorPicker in GDI Rendring #620
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -374,7 +374,7 @@ extern "C" { | |||||
#define NK_SIZE_TYPE unsigned __int32 | ||||||
#elif defined(__GNUC__) || defined(__clang__) | ||||||
#if defined(__x86_64__) || defined(__ppc64__) || defined(__PPC64__) || defined(__aarch64__) | ||||||
#define NK_SIZE_TYPE unsigned long | ||||||
#define NK_SIZE_TYPE unsigned long long | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
#else | ||||||
#define NK_SIZE_TYPE unsigned int | ||||||
#endif | ||||||
|
@@ -389,7 +389,7 @@ extern "C" { | |||||
#define NK_POINTER_TYPE unsigned __int32 | ||||||
#elif defined(__GNUC__) || defined(__clang__) | ||||||
#if defined(__x86_64__) || defined(__ppc64__) || defined(__PPC64__) || defined(__aarch64__) | ||||||
#define NK_POINTER_TYPE unsigned long | ||||||
#define NK_POINTER_TYPE unsigned long long | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm unsure about changing this as part of the GDI demo updates. Going to recommend pushing that to a different change request.
Suggested change
|
||||||
#else | ||||||
#define NK_POINTER_TYPE unsigned int | ||||||
#endif | ||||||
|
@@ -29012,7 +29012,7 @@ nk_draw_color_picker(struct nk_command_buffer *o, const struct nk_rect *matrix, | |||||
|
||||||
/* draw color matrix */ | ||||||
temp = nk_hsv_f(hsva[0], 1.0f, 1.0f); | ||||||
nk_fill_rect_multi_color(o, *matrix, white, temp, temp, white); | ||||||
nk_fill_rect_multi_color(o, *matrix, white, temp, white, temp); | ||||||
nk_fill_rect_multi_color(o, *matrix, black_trans, black_trans, black, black); | ||||||
|
||||||
/* draw cross-hair */ | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's a remaining TODO?