[aseprite] 168/250: Fix SkiaWindow::updateWindow() on Skia/OSX
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:26 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 d7d0eeec7f2e5dbaacb2b27be808b1b1be6a66f6
Author: David Capello <davidcapello at gmail.com>
Date: Wed Oct 14 12:00:50 2015 -0300
Fix SkiaWindow::updateWindow() on Skia/OSX
---
src/she/skia/skia_window_osx.mm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/she/skia/skia_window_osx.mm b/src/she/skia/skia_window_osx.mm
index 6ac3856..0138601 100644
--- a/src/she/skia/skia_window_osx.mm
+++ b/src/she/skia/skia_window_osx.mm
@@ -92,7 +92,14 @@ public:
}
void updateWindow(const gfx::Rect& bounds) {
- [[m_window contentView] setNeedsDisplay:YES];
+ int scale = this->scale();
+ NSView* view = m_window.contentView;
+ [view setNeedsDisplayInRect:
+ NSMakeRect(bounds.x*scale,
+ view.frame.size.height - (bounds.y+bounds.h)*scale,
+ bounds.w*scale,
+ bounds.h*scale)];
+ [view displayIfNeeded];
}
void* handle() {
--
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