Added a notice that the multi color gradient fill in the GDI backend flickers

This commit is contained in:
Benedikt Müssig 2022-05-13 01:38:12 +02:00 committed by GitHub
parent ea550fc4b2
commit 1ff2a62fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,9 @@ nk_gdi_rect_multi_color(HDC dc, short x, short y, unsigned short w,
unsigned short h, struct nk_color left, struct nk_color top,
struct nk_color right, struct nk_color bottom)
{
/* Note that GDI (without plus) does not appear to support alpha transparency properly in gradients. */
/* Note that GDI (without plus) does not appear to support alpha transparency properly in gradients.
Due to this lack of support, surfaces drawn with alpha tend to flicker a lot, when moving the cursor over them (e.g. the color picker matrix).
*/
BLENDFUNCTION alphaFunction;
GRADIENT_TRIANGLE gTri[2];
TRIVERTEX vt[4];