Fix chart bg being shown one too many times in bany
This commit is contained in:
parent
41d81e926f
commit
fdc0f01847
|
@ -118,15 +118,15 @@ async fn best_plays<C: MessageContext>(
|
||||||
.layout
|
.layout
|
||||||
.edit_to_relative(item_with_margin, item_grid, origin.0, origin.1);
|
.edit_to_relative(item_with_margin, item_grid, origin.0, origin.1);
|
||||||
|
|
||||||
let top_bg = &*TOP_BACKGROUND;
|
|
||||||
drawer.blit_rbga(top_area, (0, 0), top_bg);
|
|
||||||
|
|
||||||
let (play, song, chart) = if let Some(item) = plays.get(i) {
|
let (play, song, chart) = if let Some(item) = plays.get(i) {
|
||||||
item
|
item
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let top_bg = &*TOP_BACKGROUND;
|
||||||
|
drawer.blit_rbga(top_area, (0, 0), top_bg);
|
||||||
|
|
||||||
// {{{ Display index
|
// {{{ Display index
|
||||||
let bg = &*COUNT_BACKGROUND;
|
let bg = &*COUNT_BACKGROUND;
|
||||||
let bg_center = Rect::from_image(bg).center();
|
let bg_center = Rect::from_image(bg).center();
|
||||||
|
|
Loading…
Reference in a new issue