- cc_item_picture: fix wrong operator in width calculation

This commit is contained in:
svenhoefer
2016-10-27 23:11:43 +02:00
parent a71c71edcc
commit 874f54af4b

View File

@@ -224,7 +224,7 @@ void CComponentsPicture::initCCItem()
width = GetWidth4FB_HW_ACC(x+fr_thickness, width-2*fr_thickness)+2*fr_thickness; width = GetWidth4FB_HW_ACC(x+fr_thickness, width-2*fr_thickness)+2*fr_thickness;
#endif #endif
} }
if (keep_dy_aspect & dx){ if (keep_dy_aspect && dx){
float w_ratio = float(width)*100/(float)dx; float w_ratio = float(width)*100/(float)dx;
height = int(w_ratio*(float)dy/100); height = int(w_ratio*(float)dy/100);
} }