Last touches on power and side bar.

This commit is contained in:
Ben Lankamp
2020-07-04 11:24:07 +02:00
parent 4ba5c0d72c
commit 9b8fbe098b
2 changed files with 9 additions and 7 deletions
+5 -4
View File
@@ -193,14 +193,15 @@ void PowerClass::Draw_It(bool complete)
/*
** Hires power strip is too big to fit into a shape so it is in two parts
*/
CC_Draw_Shape(PowerBarShapeHD, 0, ScreenWidth - (640 - (240 * RESFACTOR)), (84 * RESFACTOR), WINDOW_MAIN, flags | SHAPE_NORMAL | SHAPE_WIN_REL, remap);
CC_Draw_Shape(PowerBarShapeHD, 0, ScreenWidth - (640 - (240 * RESFACTOR)), (88 * RESFACTOR), WINDOW_MAIN, flags | SHAPE_NORMAL | SHAPE_WIN_REL, remap);
int bottomOfBar = (84 * RESFACTOR) + 56;
int bottomOfBar = (88 + 56) * RESFACTOR;
while (bottomOfBar < PowerButton.Height + 32)
while ( bottomOfBar < ( PowerButton.Height - 56 ) )
{
CC_Draw_Shape(PowerBarShapeHD, 1, ScreenWidth - (640 - (240 * RESFACTOR)), bottomOfBar, WINDOW_MAIN, flags | SHAPE_NORMAL | SHAPE_WIN_REL, remap);
bottomOfBar += 8 * RESFACTOR;
bottomOfBar += 56 * RESFACTOR;
}
// bottom