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

Function buffer_write

sys/windows/consoletty.c:882–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880}
881
882void buffer_write(cell_t * buffer, cell_t * cell, COORD pos)
883{
884 nhassert(pos.X >= 0 && pos.X < console.width);
885 nhassert(pos.Y >= 0 && pos.Y < console.height);
886
887 cell_t * dst = buffer + (console.width * pos.Y) + pos.X;
888 *dst = *cell;
889
890 if ((iflags.debug.immediateflips || !program_state.in_moveloop)
891 && buffer == console.back_buffer)
892 back_buffer_flip();
893}
894
895/*
896 * Called after returning from ! or ^Z

Callers 3

xputc_coreFunction · 0.85
console_g_putchFunction · 0.85
g_pututf8Function · 0.85

Calls 1

back_buffer_flipFunction · 0.85

Tested by

no test coverage detected