Loading

Paste #ptvuv4bkz

  1. Window *w;
  2. +   WindowEvent e;
  3. +
  4. +   e.we.place.select_method = method;
  5. +   e.we.place.select_proc   = process;
  6. +
  7. +
  8. +   /* stop drawing mode if the window has been closed */
  9. +   w = FindWindowById(_thd.window_class, _thd.window_number);
  10. +   if (w == NULL) {
  11. +       ResetObjectToPlace();
  12. +       return;
  13. +   }
  14. +
  15. +   e.event = WE_CLICKDRAW;
  16. +   e.we.place.pt = GetTileBelowCursor();
  17. +
  18. +   e.we.place.tile = TileVirtXY(_thd.selend.x, _thd.selend.y);
  19. +   e.we.place.starttile = TileVirtXY(_thd.selstart.x, _thd.selstart.y);
  20. +   w->wndproc(w, &e);

Comments