MCPcopy Create free account
hub / github.com/NetHack/NetHack / nhcoord2display

Function nhcoord2display

win/win32/mhmap.c:1267–1274  ·  view source on GitHub ↗

map nethack map coordinates to the screen location */

Source from the content-addressed store, hash-verified

1265
1266/* map nethack map coordinates to the screen location */
1267void
1268nhcoord2display(PNHMapWindow data, int x, int y, LPRECT lpOut)
1269{
1270 lpOut->left = (x - data->xPos) * data->xFrontTile + data->map_orig.x;
1271 lpOut->top = (y - data->yPos) * data->yFrontTile + data->map_orig.y;
1272 lpOut->right = lpOut->left + data->xFrontTile;
1273 lpOut->bottom = lpOut->top + data->yFrontTile;
1274}
1275
1276#if (VERSION_MAJOR < 4) && (VERSION_MINOR < 4) && (PATCHLEVEL < 2)
1277/* map glyph to character/color combination */

Callers 1

mswin_map_updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected