add and use FRAME_WIDTH defines; ...

replace other fixed frame widths with OFFSET defines


Origin commit data
------------------
Commit: 6d58a3b1c9
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-20 (Wed, 20 Sep 2017)

Origin message was:
------------------
- add and use FRAME_WIDTH defines; ...

replace other fixed frame widths with OFFSET defines
This commit is contained in:
vanhofen
2017-09-20 13:46:31 +02:00
parent 159b844430
commit 619342d89d
16 changed files with 21 additions and 20 deletions

View File

@@ -620,7 +620,7 @@ void CImageInfoNI::paint_DF_Info(int posx)
paintLine(posx, font_small, buf.str());
CProgressBar pb(boxX, boxY, boxW, boxH);
pb.setFrameThickness(0);
pb.setFrameThickness(FRAME_WIDTH_NONE);
pb.setRgb(70, 100, 90);
pb.setType(CProgressBar::PB_REDRIGHT);
pb.setValues(image_size.percent, 100);
@@ -720,7 +720,7 @@ void CImageInfoNI::paint_MEM_Info(int posx, int posy)
g_Font[font_small]->RenderString(posx, posy, boxX - posx, buf.str().c_str(), COL_INFOBAR_TEXT);
CProgressBar pb(boxX, boxY, boxW, boxH);
pb.setFrameThickness(0);
pb.setFrameThickness(FRAME_WIDTH_NONE);
pb.setRgb(70, 100, 90);
pb.setType(CProgressBar::PB_REDRIGHT);
pb.setValues(mem_percent, 100);
@@ -873,7 +873,7 @@ void CImageInfoNI::paint_NET_Info(int posx, int posy)
g_Font[font_small]->RenderString(posx, posy, boxX - posx, temp_string, COL_INFOBAR_TEXT);
CProgressBar pb(boxX, boxY, boxW, boxH);
pb.setFrameThickness(0);
pb.setFrameThickness(FRAME_WIDTH_NONE);
pb.setRgb(70, 100, 90);
pb.setType(CProgressBar::PB_REDRIGHT);
pb.setValues(percent, 100);