diff options
author | Simon Rozman <simon@rozman.si> | 2020-11-07 09:51:04 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-11-11 08:43:45 +0100 |
commit | 86c95bacda4f7d53e25a0b161babc4bcd5634bcf (patch) | |
tree | 16884bba52cf59e8b961ba2bbb1ccba26f510677 | |
parent | Extend RichEdit support (diff) | |
download | wireguard-windows-86c95bacda4f7d53e25a0b161babc4bcd5634bcf.tar.xz wireguard-windows-86c95bacda4f7d53e25a0b161babc4bcd5634bcf.zip |
Add RGB "macro"
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | gdi32.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -765,6 +765,10 @@ const ( FR_NOT_ENUM = 0x20 ) +func RGB(r, g, b byte) COLORREF { + return COLORREF(r) | (COLORREF(g) << 8) | (COLORREF(b) << 16) +} + type ( COLORREF uint32 HBITMAP HGDIOBJ |