mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 13:03:27 +00:00
Fixed map labels jumping around the map on scroll (fixes #2333)
Fixup 089fc02c298e7e4f6ed6bc57935cbf4811a03234. Not sure why this works, though. -xmove, -ymove worked fine on accelerated_rendering... Or perhaps I just didn't notice this issue.
This commit is contained in:
parent
32119a5a05
commit
2e7b041eb5
@ -1953,7 +1953,7 @@ bool display::scroll(int xmove, int ymove, bool force)
|
||||
*
|
||||
* const int label_[x,y]_adjust = [x,y]pos_ - new_[x,y];
|
||||
*/
|
||||
font::scroll_floating_labels(-xmove, -ymove);
|
||||
font::scroll_floating_labels(diff_x, diff_y);
|
||||
|
||||
labels().recalculate_shroud();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user