1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-04-03 20:22:43 +00:00

Fix positions

This commit is contained in:
jugeeya 2023-09-12 09:10:51 -07:00
parent dce07ce3e3
commit ba69d1ebc7

View file

@ -80,7 +80,7 @@ unsafe fn draw_log(root_pane: &Pane, log_idx: usize, log: &InputLog) {
fade_out(log_pane, log.ttl, FADE_FRAMES);
// Handle positioning
let new_pos_y = -52.5 * log_idx as f32;
let new_pos_y = (-56.0 * log_idx as f32) + 56.0;
if new_pos_y != log_pane.pos_y {
log_pane.pos_y = new_pos_y;
log_pane.flags |= 1 << PaneFlag::IsGlobalMatrixDirty as u8;