From 6a04c7ff186f91c1b5cc5bf89324fc04d3236435 Mon Sep 17 00:00:00 2001 From: Alex Kompel Date: Wed, 10 Jun 2015 23:33:22 -0700 Subject: [PATCH] win32_gui: "no flickering" patch broke text mode --- win/win32/mhmap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/win/win32/mhmap.c b/win/win32/mhmap.c index edbd59492..433147e3d 100644 --- a/win/win32/mhmap.c +++ b/win/win32/mhmap.c @@ -458,10 +458,12 @@ onMSNHCommand(HWND hWnd, WPARAM wParam, LPARAM lParam) data->bkmap[msg_data->x][msg_data->y] = msg_data->bkglyph; /* invalidate the update area. Erase backround if there - is nothing to paint */ + is nothing to paint or we are in text mode */ nhcoord2display(data, msg_data->x, msg_data->y, &rt); InvalidateRect(hWnd, &rt, - ((msg_data->glyph == NO_GLYPH) && (msg_data->bkglyph == NO_GLYPH))); + (((msg_data->glyph == NO_GLYPH) && (msg_data->bkglyph == NO_GLYPH)) + || data->bAsciiMode + || Is_rogue_level(&u.uz))); } } break;