GUI2/Minimap: quick fix to get the minimap drawing again

This commit is contained in:
Charles Dang 2017-06-05 23:17:37 +11:00
parent 56a793c086
commit a710d6d457

View file

@ -247,7 +247,10 @@ void minimap::impl_draw_background(int x_offset, int y_offset)
const ::surface surf = get_image(rect.w, rect.h);
if(surf) {
sdl_blit(surf, nullptr, CVideo::get_singleton().getSurface(), &rect);
SDL_Rect dst {0, 0, surf->w, surf->h};
texture txt(surf);
CVideo::get_singleton().copy_to_screen(txt, nullptr, &dst);
}
}