UI: Dynamic DPI scaling

This commit is contained in:
Dr. Chat
2017-08-03 21:17:57 -05:00
parent aeb0e2557c
commit b3b7acb7ca
3 changed files with 38 additions and 8 deletions

View File

@@ -154,7 +154,9 @@ void Window::Layout() {
void Window::Invalidate() {}
void Window::OnDpiChanged(UIEvent* e) {}
void Window::OnDpiChanged(UIEvent* e) {
// TODO(DrChat): Notify listeners.
}
void Window::OnResize(UIEvent* e) {
ForEachListener([e](auto listener) { listener->OnResize(e); });