map nethack map coordinates to the screen location */
| 847 | |
| 848 | /* map nethack map coordinates to the screen location */ |
| 849 | void |
| 850 | nhcoord2display(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 */ |
no outgoing calls
no test coverage detected