--- a/src/widget/widget_caption.cpp Fri Mar 02 22:31:08 2007 +0000
+++ b/src/widget/widget_caption.cpp Fri Mar 02 22:37:24 2007 +0000
@@ -22,8 +22,6 @@
/*virtual*/ void CaptionBar::DrawBackground(EvtPaint &ev)
{
-// DrawFrameRect(m_color, FR_NONE);
-
BaseWindow *w = GetWindow();
assert(w != NULL);
@@ -34,14 +32,6 @@
if (caption_color != 0xFF) {
GfxFillRect(Left() + 2, Top() + 2, Right() - 2, Bottom() - 2, _colour_gradient[_player_colors[caption_color]][4]);
}
-
- //assert(r.bottom - r.top == 13); // XXX - to ensure the same sizes are used everywhere!
- //DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, FR_BORDERONLY);
- //DrawFrameRect(r.left+1, r.top+1, r.right-1, r.bottom-1, wi->color, (caption_color == 0xFF) ? FR_LOWERED | FR_DARKENED : FR_LOWERED | FR_DARKENED | FR_BORDERONLY);
-
- //if (caption_color != 0xFF) {
- // GfxFillRect(r.left+2, r.top+2, r.right-2, r.bottom-2, _colour_gradient[_player_colors[caption_color]][4]);
- //}
}
/*virtual*/ void CaptionBar::OnPaint(EvtPaint &ev)
@@ -53,7 +43,7 @@
/*virtual*/ void CaptionBar::OnLeftClick(EvtClick &ev)
{
- m_moving_offset = ev.m_pt/* - GetWindow()->TopLeft()*/;
+ m_moving_offset = ev.m_pt;
ev.SetHandled();
m_ticket_moving = CaptureEventsT(this, &CaptionBar::OnCapturePressed);
Invalidate();