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

Function curses_cliparound

win/curses/cursmain.c:896–905  ·  view source on GitHub ↗

cliparound(x, y)-- Make sure that the user is more-or-less centered on the screen if the playing area is larger than the screen. -- This function is only defined if CLIPPING is defined. */

Source from the content-addressed store, hash-verified

894 -- This function is only defined if CLIPPING is defined.
895*/
896void
897curses_cliparound(int x, int y)
898{
899 int sx, sy, ex, ey;
900 boolean redraw = curses_map_borders(&sx, &sy, &ex, &ey, x, y);
901
902 if (redraw) {
903 curses_draw_map(sx, sy, ex, ey);
904 }
905}
906
907/*
908print_glyph(window, x, y, glyphinfo, bkglyphinfo)

Callers

nothing calls this directly

Calls 2

curses_map_bordersFunction · 0.85
curses_draw_mapFunction · 0.85

Tested by

no test coverage detected