progresswindow: Consider window frame for progress bar width

supplement to: sync frame width with message/hintbox 8fb9196
This commit is contained in:
2022-04-17 17:10:58 +02:00
parent 8fb9196949
commit 0e02e8e956

View File

@@ -126,7 +126,7 @@ CProgressBar* CProgressWindow::getProgressItem()
y_tmp += ccw_body->getCCItem(i)->getYPos() + ccw_body->getCCItem(i)->getHeight(); y_tmp += ccw_body->getCCItem(i)->getYPos() + ccw_body->getCCItem(i)->getHeight();
y_tmp += OFFSET_INNER_MID; y_tmp += OFFSET_INNER_MID;
} }
pBar->setDimensionsAll(OFFSET_INNER_MID, y_tmp, width-2*OFFSET_INNER_MID, g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight()); pBar->setDimensionsAll(OFFSET_INNER_MID, y_tmp, width-2*OFFSET_INNER_MID-2*fr_thickness, g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight());
pBar->setColorBody(col_body_std); pBar->setColorBody(col_body_std);
pBar->setActiveColor(COL_PROGRESSBAR_ACTIVE_PLUS_0); pBar->setActiveColor(COL_PROGRESSBAR_ACTIVE_PLUS_0);
pBar->setFrameThickness(FRAME_WIDTH_MIN); pBar->setFrameThickness(FRAME_WIDTH_MIN);