CComponentsScrollBar: fix possible too small type size

Possible segment count could be more than 265.
Was a remnant from scrollbar test phase.
This commit is contained in:
2017-08-09 19:11:27 +02:00
parent 57e410c052
commit 379d1ffa76

View File

@@ -178,7 +178,7 @@ void CComponentsScrollBar::initSegments()
fb_pixel_t passive_col = sb_visual_enable ? sb_segment_col : col_body; fb_pixel_t passive_col = sb_visual_enable ? sb_segment_col : col_body;
//create and add segments to segment container //create and add segments to segment container
for(u_int8_t i=0; i<sb_segments_count; i++){ for(u_int32_t i=0; i<sb_segments_count; i++){
CComponentsShapeSquare *item = new CComponentsShapeSquare(0, y_seg, w_seg, h_seg, sb_segments_obj, false); CComponentsShapeSquare *item = new CComponentsShapeSquare(0, y_seg, w_seg, h_seg, sb_segments_obj, false);
y_seg += h_seg + append_y_offset; y_seg += h_seg + append_y_offset;