MCPcopy Create free account
hub / github.com/NetHack/NetHack / mar_curs

Function mar_curs

outdated/win/gem/wingem1.c:1243–1261  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

1241/************************* mar_curs *******************************/
1242
1243void
1244mar_curs(x, y)
1245int x, y;
1246{
1247 Min(&dirty_map_area.g_x, x);
1248 Min(&dirty_map_area.g_y, y);
1249 Max(&dirty_map_area.g_w, x);
1250 Max(&dirty_map_area.g_h, y);
1251 Min(&dirty_map_area.g_x, map_cursx);
1252 Min(&dirty_map_area.g_y, map_cursy);
1253 Max(&dirty_map_area.g_w, map_cursx);
1254 Max(&dirty_map_area.g_h, map_cursy);
1255
1256 map_cursx = x;
1257 map_cursy = y;
1258
1259 if (WIN_MAP != WIN_ERR)
1260 Gem_nhwindow[WIN_MAP].gw_dirty = TRUE;
1261}
1262
1263void mar_cliparound(void);
1264void

Callers 4

Gem_cursFunction · 0.85
Gem_cliparoundFunction · 0.85
mar_map_curs_weiterFunction · 0.85
mar_nh_poskeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected