MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CopyFromBuffer

Method CopyFromBuffer

src/blitter/8bpp_base.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void Blitter_8bppBase::CopyFromBuffer(void *video, const void *src, int width, int height)
54{
55 uint8_t *dst = (uint8_t *)video;
56 const uint8_t *usrc = (const uint8_t *)src;
57
58 for (; height > 0; height--) {
59 std::copy_n(usrc, width, dst);
60 usrc += width;
61 dst += _screen.pitch;
62 }
63}
64
65void Blitter_8bppBase::CopyToBuffer(const void *video, void *dst, int width, int height)
66{

Callers 2

UndrawMouseCursorFunction · 0.45
NetworkUndrawChatMessageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected