CComponentsScrollBar: fix possible too small type size

Possible segment count could be more than 265.
Was a remnant from scrollbar test phase.


Origin commit data
------------------
Commit: 379d1ffa76
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-09 (Wed, 09 Aug 2017)
This commit is contained in:
2017-08-09 19:11:27 +02:00
parent 22fdfc0484
commit 9481b6cdc5

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;