Formatting

This commit is contained in:
MartorSkull 2026-04-18 21:10:10 +02:00
commit 93070ef166

View file

@ -1981,11 +1981,9 @@ fn positionWidgets(ptr: *anyopaque) !void {
bb_width = @min(bb_width, state.buffer.width - 2);
const v_space: f32 = @floatFromInt(state.buffer.height - bb_height);
const v_position: usize = @intFromFloat(
@min(@max(1.0, v_space * state.config.box_v_position), max_v_position));
const v_position: usize = @intFromFloat(@min(@max(1.0, v_space * state.config.box_v_position), max_v_position));
const h_space: f32 = @floatFromInt(state.buffer.width - bb_width);
const h_position: usize = @intFromFloat(
@min(@max(1.0, h_space * state.config.box_h_position), max_h_position));
const h_position: usize = @intFromFloat(@min(@max(1.0, h_space * state.config.box_h_position), max_h_position));
if (state.config.bigclock != .none) {
state.bigclock_label.positionXY(TerminalBuffer.START_POSITION