89void DrawScrollbar(word sbRegion,
int sbX,
int sbY,
int sbHeight,
int sbCurrent,
int sbWindow,
int sbMax)
93 if(sbWindow > sbMax) sbWindow = sbMax;
98 for(i = 0; i < 15; i++)
104 for(i = 0; i < 15; i++)
111 TAP_Osd_FillBox(sbRegion, sbX + 7, sbY + 2, 1, 1,
sbArrow);
112 TAP_Osd_FillBox(sbRegion, sbX + 6, sbY + 3, 3, 1,
sbArrow);
113 TAP_Osd_FillBox(sbRegion, sbX + 5, sbY + 4, 5, 1,
sbArrow);
114 TAP_Osd_FillBox(sbRegion, sbX + 4, sbY + 5, 7, 1,
sbArrow);
115 TAP_Osd_FillBox(sbRegion, sbX + 3, sbY + 6, 9, 1,
sbArrow);
118 TAP_Osd_FillBox(sbRegion, sbX + 7, sbY + sbHeight - 2, 1, 1,
sbArrow);
119 TAP_Osd_FillBox(sbRegion, sbX + 6, sbY + sbHeight - 3, 3, 1,
sbArrow);
120 TAP_Osd_FillBox(sbRegion, sbX + 5, sbY + sbHeight - 4, 5, 1,
sbArrow);
121 TAP_Osd_FillBox(sbRegion, sbX + 4, sbY + sbHeight - 5, 7, 1,
sbArrow);
122 TAP_Osd_FillBox(sbRegion, sbX + 3, sbY + sbHeight - 6, 9, 1,
sbArrow);
129 for(i = 0; i < 13; i++)
131 TAP_Osd_FillBox(sbRegion, (sbX + 1 + i), sbY + ((sbHeight-26) * sbCurrent / sbMax) + 13, 1, ((sbHeight-26) * sbWindow / sbMax), RGB(
sbSlider[i][0],
sbSlider[i][1],
sbSlider[i][2]));