| 314 | } |
| 315 | |
| 316 | void |
| 317 | message_handler(int x, int y) |
| 318 | { |
| 319 | switch (objc_find(zz_oblist[MSGWIN], ROOT, MAX_DEPTH, x, y)) { |
| 320 | case UPMSG: |
| 321 | if (msg_pos > msg_vis - 1) { |
| 322 | msg_pos--; |
| 323 | Gem_nhwindow[WIN_MESSAGE].gw_dirty = TRUE; |
| 324 | mar_display_nhwindow(WIN_MESSAGE); |
| 325 | } |
| 326 | Event_Timer(50, 0, TRUE); |
| 327 | break; |
| 328 | case DNMSG: |
| 329 | if (msg_pos < msg_max) { |
| 330 | msg_pos++; |
| 331 | Gem_nhwindow[WIN_MESSAGE].gw_dirty = TRUE; |
| 332 | mar_display_nhwindow(WIN_MESSAGE); |
| 333 | } |
| 334 | Event_Timer(50, 0, TRUE); |
| 335 | break; |
| 336 | case GRABMSGWIN: |
| 337 | default: |
| 338 | move_win(Gem_nhwindow[WIN_MESSAGE].gw_window); |
| 339 | break; |
| 340 | case -1: |
| 341 | break; |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | int |
| 346 | mar_ob_mapcenter(OBJECT *p_obj) |
no test coverage detected