mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
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:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user