(svn r8993) [cpp_gui] -Fix: ResizeBox now draws itself in lowered state when resizing cpp_gui
authorKUDr
Sat, 03 Mar 2007 11:50:45 +0000
branchcpp_gui
changeset 6281 2ae707873e23
parent 6280 57f6156a327d
child 6282 c5b92f2d924f
(svn r8993) [cpp_gui] -Fix: ResizeBox now draws itself in lowered state when resizing
src/widget/widget_resizebox.cpp
--- a/src/widget/widget_resizebox.cpp	Sat Mar 03 11:46:05 2007 +0000
+++ b/src/widget/widget_resizebox.cpp	Sat Mar 03 11:50:45 2007 +0000
@@ -22,7 +22,7 @@
 
 /*virtual*/ void ResizeBox::DrawBackground(EvtPaint &ev)
 {
-	bool sizing = false;
+	bool sizing = m_ticket_sizing.IsActive();
 	DrawFrameRect(Left(), Top(), Right(), Bottom(), m_color, sizing ? FR_LOWERED : FR_NONE);
 }
 
@@ -59,7 +59,7 @@
 	assert(Size() == Point16(11, 11));
 
 	DrawBackground(ev);
-	bool sizing = false;
+	bool sizing = m_ticket_sizing.IsActive();
 	DrawSprite(SPR_WINDOW_RESIZE, PAL_NONE, Left() + 3 + sizing, Top() + 3 + sizing);
 	ev.SetHandled();
 }