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

Function nhcoord2display

outdated/sys/wince/mhmap.c:849–856  ·  view source on GitHub ↗

map nethack map coordinates to the screen location */

Source from the content-addressed store, hash-verified

847
848/* map nethack map coordinates to the screen location */
849void
850nhcoord2display(PNHMapWindow data, int x, int y, LPRECT lpOut)
851{
852 lpOut->left = (x - data->xPos) * data->xScrTile + data->map_orig.x;
853 lpOut->top = (y - data->yPos) * data->yScrTile + data->map_orig.y;
854 lpOut->right = lpOut->left + data->xScrTile;
855 lpOut->bottom = lpOut->top + data->yScrTile;
856}
857
858#if (VERSION_MAJOR < 4) && (VERSION_MINOR < 4) && (PATCHLEVEL < 2)
859/* map glyph to character/color combination */

Callers 2

onMSNHCommandFunction · 0.70
onPaintFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected