mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-13 15:39:59 +00:00
Fix SkiaWindow::updateWindow() on Skia/OSX
This commit is contained in:
parent
d5c5c2e1f9
commit
d7d0eeec7f
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user