Fixed flickering around edges of floating labels (fixes #7700)

The early-exit optimization didn't take into account the shaded border area since only the
non-bordered draw area was saved. Attempting to save it caused other issues, and this is the
easiest way to fix the issue.
This commit is contained in:
Charles Dang 2023-06-28 21:44:00 -04:00
parent 96046499f9
commit 58a29bcad8

View file

@ -175,11 +175,6 @@ void floating_label::update(int time)
uint8_t new_alpha = get_alpha(time);
if(screen_loc_ == draw_loc && alpha_ == new_alpha) {
// nothing has changed
return;
}
// Invalidate former draw loc
draw_manager::invalidate_region(get_bg_rect(screen_loc_));