cliparound(x, y)-- Make sure that the user is more-or-less centered on the screen if the playing area is larger than the screen. -- This function is only defined if CLIPPING is defined. */
| 1185 | -- This function is only defined if CLIPPING is defined. |
| 1186 | */ |
| 1187 | void |
| 1188 | mswin_cliparound(int x, int y) |
| 1189 | { |
| 1190 | winid wid = WIN_MAP; |
| 1191 | |
| 1192 | logDebug("mswin_cliparound(%d, %d)\n", x, y); |
| 1193 | |
| 1194 | if ((wid >= 0) && (wid < MAXWINDOWS) |
| 1195 | && (GetNHApp()->windowlist[wid].win != NULL)) { |
| 1196 | MSNHMsgClipAround data; |
| 1197 | data.x = x; |
| 1198 | data.y = y; |
| 1199 | SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND, |
| 1200 | (WPARAM) MSNH_MSG_CLIPAROUND, (LPARAM) &data); |
| 1201 | } |
| 1202 | } |
| 1203 | |
| 1204 | /* |
| 1205 | print_glyph(window, x, y, glyph, bkglyph) |
no test coverage detected