Windows backend done
This commit is contained in:
parent
7411bca817
commit
32a146b564
@ -11,7 +11,8 @@ std::tuple<QPoint, QPixmap> 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, QPixmap>(QPoint(info.xHotspot, info.yHotspot), QtWin::fromHBITMAP(info.hbmColor));
|
||||
return std::tuple<QPoint, QPixmap>(QPoint(info.xHotspot, info.yHotspot),
|
||||
QtWin::fromHBITMAP(info.hbmColor, QtWin::HBitmapAlpha));
|
||||
} else
|
||||
return std::tuple<QPoint, QPixmap>(QPoint(0, 0), QPixmap());
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user