Display: restrict render clip rect setter to map drawing scope only
This prevents tooltips from being cut off.
This commit is contained in:
parent
f25a404f37
commit
085bd42974
1 changed files with 7 additions and 5 deletions
|
@ -3163,12 +3163,14 @@ void display::draw_new()
|
|||
draw_all_panels();
|
||||
draw_minimap();
|
||||
|
||||
SDL_Rect map_area_rect = map_area();
|
||||
render_clip_rect_setter setter(&map_area_rect);
|
||||
{
|
||||
SDL_Rect map_area_rect = map_area();
|
||||
render_clip_rect_setter setter(&map_area_rect);
|
||||
|
||||
// Draw the gamemap and its contents (units, etc);
|
||||
for(const map_location& loc : get_visible_hexes()) {
|
||||
draw_hex(loc);
|
||||
// Draw the gamemap and its contents (units, etc);
|
||||
for(const map_location& loc : get_visible_hexes()) {
|
||||
draw_hex(loc);
|
||||
}
|
||||
}
|
||||
|
||||
post_commit();
|
||||
|
|
Loading…
Add table
Reference in a new issue