CCDraw: fix wrong intit values for corners and position

This commit is contained in:
2017-04-07 21:44:32 +02:00
parent 511486c404
commit 6d45fbb4eb
2 changed files with 5 additions and 2 deletions

View File

@@ -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;
} }
} }

View File

@@ -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;