Skip to content

Commit

Permalink
GUI2/Minimap: quick fix to get the minimap drawing again
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 9, 2017
1 parent cb90c50 commit 8d1c4bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/widgets/minimap.cpp
Expand Up @@ -243,7 +243,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);
}
}

Expand Down

0 comments on commit 8d1c4bc

Please sign in to comment.