summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-24 19:20:49 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-26 07:30:39 +0000
commit4091bd9568e5aff4a1f24416d26da567a2c076ad (patch)
tree32285c49c19821d5d287fab29cf264a647735ded /src/gui/gui.cpp
parent4604ee1caf00fe1a8c095119c1046e7f625e1f0b (diff)
downloadmana-4091bd9568e5aff4a1f24416d26da567a2c076ad.tar.gz
mana-4091bd9568e5aff4a1f24416d26da567a2c076ad.tar.bz2
mana-4091bd9568e5aff4a1f24416d26da567a2c076ad.tar.xz
mana-4091bd9568e5aff4a1f24416d26da567a2c076ad.zip
Added functions to draw images at sub-pixel positions
This can be used for smoother mouse cursor movement when rendering our own mouse cursor (already changed in this commit) and is also necessary for implementing support for HiDPI font rendering. Also dropped some almost duplicated OpenGL code.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 62350f99..68f43cc3 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -213,7 +213,7 @@ void Gui::draw()
Image *mouseCursor = mMouseCursors->get(static_cast<size_t>(mCursorType));
mouseCursor->setAlpha(mMouseCursorAlpha);
- static_cast<Graphics*>(mGraphics)->drawImage(
+ static_cast<Graphics*>(mGraphics)->drawImageF(
mouseCursor,
logicalX - 15,
logicalY - 17);