aboutsummaryrefslogtreecommitdiff
path: root/src/ui/window.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@outlook.com>2018-10-06 15:51:36 +0000
committerYuqian Yang <crupest@outlook.com>2018-10-06 15:51:36 +0000
commitb0057dc911f96258c7280b89c8f4da828ecc283c (patch)
treeccdc237b84423c9564458df3fae036f08815dda6 /src/ui/window.cpp
parent7e870dd16e2f5b41fa6c6f687723aaa50c16274d (diff)
parent2261a4bc348a6017a0f31233f969bdf31ae35679 (diff)
downloadcru-b0057dc911f96258c7280b89c8f4da828ecc283c.tar.gz
cru-b0057dc911f96258c7280b89c8f4da828ecc283c.tar.bz2
cru-b0057dc911f96258c7280b89c8f4da828ecc283c.zip
Merge branch '13-debug-layout' into 'master'
Resolve "Add debug layout visual effect." Closes #13 See merge request crupest/CruUI!13
Diffstat (limited to 'src/ui/window.cpp')
-rw-r--r--src/ui/window.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/window.cpp b/src/ui/window.cpp
index 9edbd398..8889e032 100644
--- a/src/ui/window.cpp
+++ b/src/ui/window.cpp
@@ -439,12 +439,12 @@ namespace cru
}
}
-#ifdef CRU_DEBUG_DRAW_CONTROL_BORDER
- void Window::SetDebugDrawControlBorder(const bool value)
+#ifdef CRU_DEBUG_LAYOUT
+ void Window::SetDebugLayout(const bool value)
{
- if (debug_draw_control_border_ != value)
+ if (debug_layout_ != value)
{
- debug_draw_control_border_ = value;
+ debug_layout_ = value;
Repaint();
}
}
@@ -501,7 +501,7 @@ namespace cru
void Window::OnResizeInternal(const int new_width, const int new_height) {
render_target_->ResizeBuffer(new_width, new_height);
if (!(new_width == 0 && new_height == 0))
- Relayout();
+ InvalidateLayout();
}
void Window::OnSetFocusInternal()