Skip to content

Commit

Permalink
Update RenderElement.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Jab125 committed Jun 2, 2024
1 parent f4455a7 commit 744bfe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public static void startupProgressBars(SimpleFont font, final SimpleBufferBuilde
private static Renderer barRenderer(int cnt, int alpha, SimpleFont font, ProgressMeter pm, DisplayContext context) {
var barSpacing = font.lineSpacing() - font.descent() + BAR_HEIGHT;
var y = 250 * context.scale() + cnt * barSpacing;
var colour = context.colourScheme.foreground().packedint(alpha); //(alpha << 24) | 0xFFFFFF;
var colour = context.colourScheme.foreground().packedint(alpha);
Renderer bar;
if (pm.steps() == 0) {
bar = progressBar(ctx -> new int[] { (ctx.scaledWidth() - BAR_WIDTH * ctx.scale()) / 2, y + font.lineSpacing() - font.descent(), BAR_WIDTH * ctx.scale() }, f -> colour, frame -> indeterminateBar(frame, cnt == 0));
Expand Down

0 comments on commit 744bfe3

Please sign in to comment.