diff options
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/window.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/ui/window.cpp b/src/ui/window.cpp index 5e0dd694..ca19e8ee 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -498,9 +498,10 @@ namespace cru              ValidateRect(hwnd_, nullptr);          } -        void Window::OnResizeInternal(int new_width, int new_height) { +        void Window::OnResizeInternal(const int new_width, const int new_height) {              render_target_->ResizeBuffer(new_width, new_height); -            Relayout(); +            if (!(new_width == 0 && new_height == 0)) +                Relayout();          }          void Window::OnSetFocusInternal() | 
