mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 18:28:18 +00:00
Fix map preview aspect ratio in MP Create Game screen etc.
This commit is contained in:
parent
16cbca3027
commit
e93030c3a2
@ -219,7 +219,8 @@ void minimap::impl_draw_background(int x_offset, int y_offset)
|
||||
|
||||
const texture tex = get_image(rect.w, rect.h);
|
||||
if(tex) {
|
||||
draw::blit(tex, rect);
|
||||
// get_image returns a pre-sized texture maintaining aspect ratio.
|
||||
draw::blit(tex, {rect.x, rect.y, tex.w(), tex.h()});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user