mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
detailsline: reduce two times the shadow width from the h_marks
Otherwise shadows will be painted lower then the height of the object
the detailsline is docked to.
Origin commit data
------------------
Commit: 0abccfac8a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-25 (Mon, 25 Sep 2017)
Origin message was:
------------------
- detailsline: reduce two times the shadow width from the h_marks
Otherwise shadows will be painted lower then the height of the object
the detailsline is docked to.
This commit is contained in:
@@ -53,12 +53,14 @@ void CComponentsDetailsLine::initVarDline( const int& x_pos, const int& y_pos_to
|
||||
col_shadow = color_shadow;
|
||||
col_body = color_line;
|
||||
|
||||
shadow_w = 1;
|
||||
|
||||
//CComponentsDetailsLine
|
||||
y_down = y_pos_down;
|
||||
h_mark_top = h_mark_top_;
|
||||
h_mark_down = h_mark_down_;
|
||||
|
||||
shadow_w = 1;
|
||||
// reduce two times the shadow width, to avoid shadow overlaps
|
||||
h_mark_top = h_mark_top_ - 2*shadow_w;
|
||||
h_mark_down = h_mark_down_ - 2*shadow_w;
|
||||
|
||||
//CComponentsDetailsLine
|
||||
dl_w = CFrameBuffer::getInstance()->scale2Res(2); //NI
|
||||
|
Reference in New Issue
Block a user