Icon style (colorized or grayscale), part 2, README update
This commit is contained in:
+2
-2
@@ -122,7 +122,7 @@ func previewPaint(hwnd uintptr) {
|
||||
isz := px(16)
|
||||
if pvIcon != 0 {
|
||||
y := pvTitleR.Top + (pvTitleR.Bottom-pvTitleR.Top-isz)/2
|
||||
pDrawIconEx.Call(hdc, uintptr(pvTitleR.Left), uintptr(y), pvIcon, uintptr(isz), uintptr(isz), 0, 0, diNormal)
|
||||
pDrawIconEx.Call(hdc, uintptr(pvTitleR.Left), uintptr(y), styledIcon(pvIcon), uintptr(isz), uintptr(isz), 0, 0, diNormal)
|
||||
}
|
||||
pSetBkMode.Call(hdc, transparent)
|
||||
pSetTextColor.Call(hdc, rgb(240, 240, 245))
|
||||
@@ -136,7 +136,7 @@ func previewPaint(hwnd uintptr) {
|
||||
big := px(48)
|
||||
cx := (pvThumbR.Left + pvThumbR.Right) / 2
|
||||
cy := (pvThumbR.Top + pvThumbR.Bottom) / 2
|
||||
pDrawIconEx.Call(hdc, uintptr(cx-big/2), uintptr(cy-big/2), pvIcon, uintptr(big), uintptr(big), 0, 0, diNormal)
|
||||
pDrawIconEx.Call(hdc, uintptr(cx-big/2), uintptr(cy-big/2), styledIcon(pvIcon), uintptr(big), uintptr(big), 0, 0, diNormal)
|
||||
}
|
||||
pEndPaint.Call(hwnd, uintptr(unsafe.Pointer(&ps)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user