mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
Escher: Use dirty-tracking for View::redraw
Change-Id: I95da4eee9218784744ac4abc53328d3f537bede6
This commit is contained in:
@@ -8,6 +8,10 @@ Window::Window() :
|
||||
{
|
||||
}
|
||||
|
||||
void Window::redraw() {
|
||||
View::redraw(bounds());
|
||||
}
|
||||
|
||||
const Window * Window::window() const {
|
||||
return this;
|
||||
}
|
||||
@@ -16,7 +20,7 @@ int Window::numberOfSubviews() const {
|
||||
return (m_contentView == nullptr ? 0 : 1);
|
||||
}
|
||||
|
||||
const View * Window::subview(int index) const {
|
||||
View * Window::subview(int index) {
|
||||
assert(m_contentView != nullptr && index == 0);
|
||||
return m_contentView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user