void BC_ScrollBar::calculate_dimensions(int &w, int &h)
{
- switch(orientation)
- {
+ w = h = pixels;
+ switch( orientation ) {
case SCROLL_HORIZ:
- w = pixels;
h = data[SCROLL_HANDLE_UP]->get_h();
break;
case SCROLL_VERT:
w = data[SCROLL_HANDLE_UP]->get_w();
- h = pixels;
break;
}
}
//printf("BC_ScrollBar::draw 1 %d %d\n", selection_status, highlight_status == SCROLL_BACKARROW);
// Too small to draw anything
- if(get_w() < get_arrow_pixels() * 2 + 5)
+ if(get_w() < get_arrow_pixels() * 2 + xS(5))
{
draw_3segmenth(0,
0,
case SCROLL_VERT:
// Too small to draw anything
- if(get_h() < get_arrow_pixels() * 2 + 5)
+ if(get_h() < get_arrow_pixels() * 2 + yS(5))
{
draw_3segmentv(0,
0,