mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 15:18:04 +00:00
minimap needs a neutral surface, not a compatible one
This commit is contained in:
parent
d3c417c2b7
commit
ce7a625e59
@ -96,7 +96,7 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw)
|
||||
surface overlay = get_image(overlay_file,image::HEXED);
|
||||
|
||||
if(overlay != NULL && overlay != tile) {
|
||||
surface combined = create_compatible_surface(tile, tile->w, tile->h);
|
||||
surface combined = create_neutral_surface(tile->w, tile->h);
|
||||
SDL_Rect r = create_rect(0,0,0,0);
|
||||
sdl_blit(tile, NULL, combined, &r);
|
||||
r.x = std::max(0, (tile->w - overlay->w)/2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user