mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-30 21:18:34 +00:00
Show main os::Window on the first flipDisplay()
This commit is contained in:
parent
4a5a3a7bc4
commit
95df0b23d3
@ -267,7 +267,12 @@ void Manager::flipDisplay()
|
||||
gfx::Region(gfx::Rect(0, 0, ui::display_w(), ui::display_h())));
|
||||
|
||||
if (!m_dirtyRegion.isEmpty()) {
|
||||
// Invalidate the dirty region in the os::Window
|
||||
if (m_display->isVisible())
|
||||
m_display->invalidateRegion(m_dirtyRegion);
|
||||
else
|
||||
m_display->setVisible(true);
|
||||
|
||||
m_dirtyRegion.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user