remove duplicate event rendering

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
Fabrizio Iannetti 2023-05-21 14:56:29 +02:00
parent ae13e98388
commit 3135507688
1 changed files with 0 additions and 27 deletions

View File

@ -132,33 +132,6 @@ fn render_events_in_day(
ev_y += ev_height
}
}
if day_bounds.height - day_text_size.1 > ev_height {
if let Some(ev_day) = events.is_any_in_day(current_day) {
let ev_bounds = Rectangle {
y: y + day_text_size.1,
height: ev_height,
..day_bounds
};
renderer.fill_quad(renderer::Quad {
bounds: ev_bounds,
border_radius: 0.0.into(),
border_width: 1.0,
border_color: params.day_other_month_fg,
},
params.ev_bg);
renderer.fill_text(Text {
content: ev_day.text.as_str(),
bounds: ev_bounds,
size: params.ev_fontsize,
line_height: LineHeight::default(),
color: fg,
font: renderer.default_font(),
horizontal_alignment: alignment::Horizontal::Left,
vertical_alignment: alignment::Vertical::Top,
shaping: Shaping::default(),
});
}
}
}
//-------------------------------------------------------------------------