Switch gr_printf calls to local canvas

This commit is contained in:
Kp 2017-03-11 19:56:22 +00:00
parent a19286437a
commit 014734834c
2 changed files with 2 additions and 2 deletions

View file

@ -757,7 +757,7 @@ static void draw_automap(automap *am)
#if defined(DXX_BUILD_DESCENT_II)
if (HighlightMarker>-1 && MarkerMessage[HighlightMarker][0]!=0)
{
gr_printf(*grd_curcanv, (SWIDTH/64),(SHEIGHT/18), "Marker %d: %s",HighlightMarker+1,&MarkerMessage[(Player_num*2)+HighlightMarker][0]);
gr_printf(canvas, (SWIDTH/64),(SHEIGHT/18), "Marker %d: %s",HighlightMarker+1,&MarkerMessage[(Player_num*2)+HighlightMarker][0]);
}
#endif

View file

@ -422,7 +422,7 @@ static window_event_result scores_handler(window *wind,const d_event &event, sco
gr_set_fontcolor(canvas, BM_XRGB(28, 28, 28), -1);
gr_printf(*grd_curcanv, 0x8000, fspacy(31), "%c%s%c - %s", 34, menu->scores.cool_saying, 34, static_cast<const char *>(menu->scores.stats[0].name));
gr_printf(canvas, 0x8000, fspacy(31), "%c%s%c - %s", 34, menu->scores.cool_saying, 34, static_cast<const char *>(menu->scores.stats[0].name));
for (int i=0; i<MAX_HIGH_SCORES; i++ ) {
gr_set_fontcolor(canvas, BM_XRGB(28 - i * 2, 28 - i * 2, 28 - i * 2), -1);