MCPcopy Index your code
hub / github.com/NetHack/NetHack / paint

Function paint

win/win32/mhmap.c:1103–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1101}
1102
1103static void
1104paint(PNHMapWindow data, int i, int j)
1105{
1106 RECT rect;
1107
1108 rect.left = i * data->xBackTile;
1109 rect.top = j * data->yBackTile;
1110 rect.right = rect.left + data->xBackTile;
1111 rect.bottom = rect.top + data->yBackTile;
1112
1113 if (data->bAsciiMode || Is_rogue_level(&u.uz)) {
1114 paintGlyph(data, i, j, &rect);
1115 } else {
1116 paintTile(data, i, j, &rect);
1117 }
1118
1119 data->locDirty[i][j] = FALSE;
1120}
1121
1122
1123/* on WM_PAINT */

Callers 1

mswin_map_updateFunction · 0.85

Calls 2

paintGlyphFunction · 0.85
paintTileFunction · 0.85

Tested by

no test coverage detected