// headers
// ---------------------------------------------------------------------------
-#ifdef __GNUG__
- #pragma implementation "renderer.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
}
wxSize sizeTotal = scrollbar->GetClientSize();
- wxCoord *start, *width, length, arrow;
+ wxCoord *start, *width;
+ wxCoord length, arrow;
wxRect rect;
if ( scrollbar->IsVertical() )
{
}
// do draw it
- dc.DrawBitmap(bmp, x, y, TRUE /* use mask */);
+ dc.DrawBitmap(bmp, x, y, true /* use mask */);
}
void wxControlRenderer::DrawScrollbar(const wxScrollBar *scrollbar,
- int thumbPosOld)
+ int WXUNUSED(thumbPosOld))
{
// we will only redraw the parts which must be redrawn and not everything
wxRegion rgnUpdate = scrollbar->GetUpdateRegion();
rectUpdate.GetBottom());
#if 0 //def WXDEBUG_SCROLLBAR
- static bool s_refreshDebug = FALSE;
+ static bool s_refreshDebug = false;
if ( s_refreshDebug )
{
wxClientDC dc(wxConstCast(scrollbar, wxScrollBar));
(wxScrollArrows::Arrow)nArrow,
m_dc,
rectArrow,
- TRUE // draw a scrollbar arrow, not just an arrow
+ true // draw a scrollbar arrow, not just an arrow
);
}
}
void wxControlRenderer::DoDrawItems(const wxListBox *lbox,
size_t itemFirst, size_t itemLast,
+#if wxUSE_CHECKLISTBOX
bool isCheckLbox)
+#else
+ bool WXUNUSED(isCheckLbox))
+#endif
{
// prepare for the drawing: calc the initial position
wxCoord lineHeight = lbox->GetLineHeight();
void wxControlRenderer::DrawCheckItems(const wxCheckListBox *lbox,
size_t itemFirst, size_t itemLast)
{
- DoDrawItems(lbox, itemFirst, itemLast, TRUE);
+ DoDrawItems(lbox, itemFirst, itemLast, true);
}
#endif // wxUSE_CHECKLISTBOX
int steps = ((lenTotal + step - 1) * pos) / (max * step);
// calc the coords of one small rect
- wxCoord *px, dx, dy;
+ wxCoord *px;
+ wxCoord dx, dy;
if ( gauge->IsVertical() )
{
// draw from bottom to top: so first set y to the bottom