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

Function pos_rect

outdated/sys/mac/mactty.c:603–610  ·  view source on GitHub ↗

* Map a position on the map to screen coordinates */

Source from the content-addressed store, hash-verified

601 * Map a position on the map to screen coordinates
602 */
603static void
604pos_rect(tty_record *record, Rect *r, short x_pos, short y_pos, short x_end,
605 short y_end)
606{
607 SetRect(r, x_pos * (record->char_width), y_pos * (record->row_height),
608 (1 + x_end) * (record->char_width),
609 (1 + y_end) * (record->row_height));
610}
611
612static void
613accumulate_rect(tty_record *record, Rect *rect)

Callers 7

curs_posFunction · 0.85
update_ttyFunction · 0.85
do_add_stringFunction · 0.85
clear_tty_windowFunction · 0.85
mangle_tty_rows_columnsFunction · 0.85
frame_tty_windowFunction · 0.85
invert_tty_windowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected