From bfe126ab3c70a6c3ea8abb30fdf32fa58a6aacf6 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Fri, 10 Jun 2022 20:28:03 +0300 Subject: [PATCH] cleanup --- src/Widget.cpp | 2 +- src/Window.cpp | 1 - src/main.cpp | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Widget.cpp b/src/Widget.cpp index 5beeb32..84cbb91 100644 --- a/src/Widget.cpp +++ b/src/Widget.cpp @@ -121,7 +121,7 @@ void Widget::handle_repaint_rect(RepaintRectEvent &event) { cr->save(); - // clip this widget. this ensuers that the background fill or children won't overflow the bounds of it + // clip this widget. this ensures that the background fill or children won't overflow the bounds of it painter.rounded_rectangle(m_current_geometry, m_background_border_radius); cr->clip(); diff --git a/src/Window.cpp b/src/Window.cpp index 75fb463..5488eeb 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -82,7 +82,6 @@ void Window::repaint(Box geometry) { } void Window::repaint(Widget *target) { - std::cout << target->window_relative().x() << ", " << target->window_relative().y() << std::endl; repaint(target->current_geometry().offset(target->window_relative().x(), target->window_relative().y())); } diff --git a/src/main.cpp b/src/main.cpp index 07dcc19..7741831 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,9 +17,10 @@ int main() { window.spawn_window(); auto main_widget = window.set_main_widget(); + main_widget->set_layout(10.0); auto second_widget = main_widget->add(); - second_widget->set_layout(16.0); + second_widget->set_layout(20.0); second_widget->resize(800, 800); auto inner_widget = second_widget->add();