From 32a146b564fef3267738e145ae5dc835fbc3e4ed Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Mon, 15 May 2017 11:31:08 +0200 Subject: [PATCH] Windows backend done --- platformspecifics/u32/u32backend.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformspecifics/u32/u32backend.cpp b/platformspecifics/u32/u32backend.cpp index 74b69cb..6bb7819 100644 --- a/platformspecifics/u32/u32backend.cpp +++ b/platformspecifics/u32/u32backend.cpp @@ -11,7 +11,8 @@ std::tuple PlatformBackend::getCursor() { if (cursorInfo.flags == CURSOR_SHOWING) { ICONINFO info; // It took me 5 hours to get to here if (GetIconInfo(cursorInfo.hCursor, &info)) { - return std::tuple(QPoint(info.xHotspot, info.yHotspot), QtWin::fromHBITMAP(info.hbmColor)); + return std::tuple(QPoint(info.xHotspot, info.yHotspot), + QtWin::fromHBITMAP(info.hbmColor, QtWin::HBitmapAlpha)); } else return std::tuple(QPoint(0, 0), QPixmap()); } else