[aseprite] 121/250: Fix WinWindow::updateWindow() when m_scale > 1
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 311e90c58f82db74e717cff80b0b0d60d76fa3e5
Author: David Capello <davidcapello at gmail.com>
Date: Fri Oct 2 11:08:08 2015 -0300
Fix WinWindow::updateWindow() when m_scale > 1
---
src/she/win/window.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/she/win/window.h b/src/she/win/window.h
index 59e86c8..731379f 100644
--- a/src/she/win/window.h
+++ b/src/she/win/window.h
@@ -150,7 +150,10 @@ namespace she {
}
void updateWindow(const gfx::Rect& bounds) {
- RECT rc = { bounds.x, bounds.y, bounds.x+bounds.w, bounds.y+bounds.h };
+ RECT rc = { bounds.x*m_scale,
+ bounds.y*m_scale,
+ bounds.x*m_scale+bounds.w*m_scale,
+ bounds.y*m_scale+bounds.h*m_scale };
InvalidateRect(m_hwnd, &rc, FALSE);
UpdateWindow(m_hwnd);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list