summaryrefslogtreecommitdiffstatshomepage
path: root/imagelist.go
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2015-08-31 17:37:02 +0200
committerAlexander Neumann <alexander.neumann@picos-software.com>2015-08-31 17:37:02 +0200
commitc9ab00119606d3d51188ab7b56192fe6bc537eb9 (patch)
tree28617d530de0164221c53cdff6990bac2554a39f /imagelist.go
parentFormBase: Fix enabled propagation (diff)
downloadwireguard-windows-c9ab00119606d3d51188ab7b56192fe6bc537eb9.tar.xz
wireguard-windows-c9ab00119606d3d51188ab7b56192fe6bc537eb9.zip
ImageList: Use 32 bit color depth
Diffstat (limited to 'imagelist.go')
-rw-r--r--imagelist.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/imagelist.go b/imagelist.go
index 0e895b41..c08ef319 100644
--- a/imagelist.go
+++ b/imagelist.go
@@ -22,7 +22,7 @@ func NewImageList(imageSize Size, maskColor Color) (*ImageList, error) {
hIml := win.ImageList_Create(
int32(imageSize.Width),
int32(imageSize.Height),
- win.ILC_MASK|win.ILC_COLOR24,
+ win.ILC_MASK|win.ILC_COLOR32,
8,
8)
if hIml == 0 {
@@ -84,7 +84,7 @@ func imageListForImage(image interface{}) (hIml win.HIMAGELIST, isSysIml bool, e
} else {
w, h := win.GetSystemMetrics(win.SM_CXSMICON), win.GetSystemMetrics(win.SM_CYSMICON)
- hIml = win.ImageList_Create(w, h, win.ILC_MASK|win.ILC_COLOR24, 8, 8)
+ hIml = win.ImageList_Create(w, h, win.ILC_MASK|win.ILC_COLOR32, 8, 8)
if hIml == 0 {
return 0, false, newError("ImageList_Create failed")
}