mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 23:09:58 +00:00
Swap buffers in Display::flipDisplay()
This commit is contained in:
parent
ff5afba6ae
commit
9edbd717d8
@ -1,5 +1,5 @@
|
|||||||
// Aseprite UI Library
|
// Aseprite UI Library
|
||||||
// Copyright (C) 2019-2021 Igara Studio S.A.
|
// Copyright (C) 2019-2022 Igara Studio S.A.
|
||||||
//
|
//
|
||||||
// This file is released under the terms of the MIT license.
|
// This file is released under the terms of the MIT license.
|
||||||
// Read LICENSE.txt for more information.
|
// Read LICENSE.txt for more information.
|
||||||
@ -70,6 +70,8 @@ void Display::flipDisplay()
|
|||||||
else
|
else
|
||||||
m_nativeWindow->setVisible(true);
|
m_nativeWindow->setVisible(true);
|
||||||
|
|
||||||
|
m_nativeWindow->swapBuffers();
|
||||||
|
|
||||||
m_dirtyRegion.clear();
|
m_dirtyRegion.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -309,8 +309,6 @@ void Manager::flipAllDisplays()
|
|||||||
window->display()->flipDisplay();
|
window->display()->flipDisplay();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_display.nativeWindow()->swapBuffers();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Manager::updateAllDisplaysWithNewScale(int scale)
|
void Manager::updateAllDisplaysWithNewScale(int scale)
|
||||||
|
Loading…
Reference in New Issue
Block a user