map nethack map coordinates to the screen location */
| 1265 | |
| 1266 | /* map nethack map coordinates to the screen location */ |
| 1267 | void |
| 1268 | nhcoord2display(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 */ |