diff options
| author | trustable-code <krauter.simon@arcor.de> | 2019-11-25 17:58:04 +0100 |
|---|---|---|
| committer | trustable-code <krauter.simon@arcor.de> | 2019-11-25 17:58:04 +0100 |
| commit | e27e7739535586a859a50fd0d10a9740baa2019a (patch) | |
| tree | c2e4e60efc7c375a1250d9bced73badd09458fd4 /src/nigui/private/windows/platform_impl.nim | |
| parent | d9c6d77a38a3ab2d3025f9d63057411cbee59426 (diff) | |
| download | NiGui-e27e7739535586a859a50fd0d10a9740baa2019a.tar.gz NiGui-e27e7739535586a859a50fd0d10a9740baa2019a.zip | |
Cleanup: Remove value of importc pragmas, since we use original proc names
Diffstat (limited to 'src/nigui/private/windows/platform_impl.nim')
| -rwxr-xr-x | src/nigui/private/windows/platform_impl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nigui/private/windows/platform_impl.nim b/src/nigui/private/windows/platform_impl.nim index 2876448..1e184b4 100755 --- a/src/nigui/private/windows/platform_impl.nim +++ b/src/nigui/private/windows/platform_impl.nim @@ -939,7 +939,7 @@ method `iconPath=`(window: WindowImpl, iconPath: string) = var bitmap: pointer pGdipCreateBitmapFromFileWrapped(iconPath, bitmap) var icon: pointer - pCheckGdiplusStatus(GdipGetHicon(bitmap, icon)) + pCheckGdiplusStatus(GdipCreateHICONFromBitmap(bitmap, icon)) discard SendMessageA(window.fHandle, WM_SETICON, cast[pointer](ICON_BIG), icon) discard SendMessageA(window.fHandle, WM_SETICON, cast[pointer](ICON_SMALL), icon) |
