mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-02 21:02:12 +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())));
|
gfx::Region(gfx::Rect(0, 0, ui::display_w(), ui::display_h())));
|
||||||
|
|
||||||
if (!m_dirtyRegion.isEmpty()) {
|
if (!m_dirtyRegion.isEmpty()) {
|
||||||
|
// Invalidate the dirty region in the os::Window
|
||||||
|
if (m_display->isVisible())
|
||||||
m_display->invalidateRegion(m_dirtyRegion);
|
m_display->invalidateRegion(m_dirtyRegion);
|
||||||
|
else
|
||||||
|
m_display->setVisible(true);
|
||||||
|
|
||||||
m_dirtyRegion.clear();
|
m_dirtyRegion.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user