mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CCDraw: fix wrong intit values for corners and position
This commit is contained in:
@@ -49,7 +49,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha)
|
|||||||
|
|
||||||
fr_thickness = fr_thickness_old = 0;
|
fr_thickness = fr_thickness_old = 0;
|
||||||
|
|
||||||
corner_type = corner_type_old = CORNER_ALL;
|
corner_type = corner_type_old = CORNER_NONE;
|
||||||
corner_rad = corner_rad_old = 0;
|
corner_rad = corner_rad_old = 0;
|
||||||
|
|
||||||
shadow = CC_SHADOW_OFF;
|
shadow = CC_SHADOW_OFF;
|
||||||
@@ -552,7 +552,7 @@ void CCDraw::paintFbItems(bool do_save_bg)
|
|||||||
}
|
}
|
||||||
if (paint_bg){
|
if (paint_bg){
|
||||||
if (fbtype == CC_FBDATA_TYPE_BACKGROUND){
|
if (fbtype == CC_FBDATA_TYPE_BACKGROUND){
|
||||||
frameBuffer->paintBackgroundBoxRel(x, y, fbdata.dx, fbdata.dy);
|
frameBuffer->paintBackgroundBoxRel(fbdata.x, fbdata.y, fbdata.dx, fbdata.dy);
|
||||||
v_fbdata[i].is_painted = true;
|
v_fbdata[i].is_painted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -74,6 +74,9 @@ CComponentsShapeCircle::CComponentsShapeCircle( int x_pos, int y_pos, int diam,
|
|||||||
//CComponents
|
//CComponents
|
||||||
x = x_pos;
|
x = x_pos;
|
||||||
y = y_pos;
|
y = y_pos;
|
||||||
|
|
||||||
|
corner_type = corner_type_old = CORNER_ALL;
|
||||||
|
|
||||||
//width = height = d = diam;
|
//width = height = d = diam;
|
||||||
shadow = shadow_mode;
|
shadow = shadow_mode;
|
||||||
shadow_w = OFFSET_SHADOW;
|
shadow_w = OFFSET_SHADOW;
|
||||||
|
Reference in New Issue
Block a user