mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-11 15:41:00 +02:00
CProgressBar: replace x/y position with real position on screen
Important to paint related to screen within form dimensions
btw: small cleanups
Origin commit data
------------------
Branch: ni/coolstream
Commit: f01a9071d2
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-12 (Fri, 12 Apr 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -113,8 +113,8 @@ void CProgressBar::initDimensions()
|
||||
pb_max_value = pb_value;
|
||||
|
||||
// start positions x/y active bar
|
||||
pb_x = x + fr_thickness;
|
||||
pb_y = y + fr_thickness;
|
||||
pb_x = (cc_item_xr > -1 ? cc_item_xr : x) + fr_thickness;
|
||||
pb_y = (cc_item_yr > -1 ? cc_item_yr : y) + fr_thickness;
|
||||
|
||||
// width for active bar with current value
|
||||
pb_active_width = max(0, pb_last_width);
|
||||
|
Reference in New Issue
Block a user