MCPcopy Create free account
hub / github.com/crawl/crawl / valid_cursor_pos

Function valid_cursor_pos

crawl-ref/source/libutil.cc:379–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379bool valid_cursor_pos(int x, int y, GotoRegion region)
380{
381 const coord_def sz = cgetsize(region);
382 return x >= 1 && y >= 1 && x <= sz.x && y <= sz.y;
383}
384
385static GotoRegion _find_correct_region()
386{

Callers 5

wrapcprint_skippingFunction · 0.85
save_cursor_posMethod · 0.85
_find_correct_regionFunction · 0.85
assert_valid_cursor_posFunction · 0.85
cgotoxyFunction · 0.85

Calls 1

cgetsizeFunction · 0.85

Tested by

no test coverage detected