Fix map preview aspect ratio in MP Create Game screen etc.

This commit is contained in:
Tommy 2022-06-14 01:53:53 +12:00
parent 16cbca3027
commit e93030c3a2

View File

@ -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()});
}
}