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

Method CopyToBuffer

src/blitter/8bpp_base.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void Blitter_8bppBase::CopyToBuffer(const void *video, void *dst, int width, int height)
66{
67 uint8_t *udst = (uint8_t *)dst;
68 const uint8_t *src = (const uint8_t *)video;
69
70 for (; height > 0; height--) {
71 std::copy_n(src, width, udst);
72 src += _screen.pitch;
73 udst += width;
74 }
75}
76
77void Blitter_8bppBase::CopyImageToBuffer(const void *video, void *dst, int width, int height, int dst_pitch)
78{

Callers 2

DrawMouseCursorFunction · 0.45
NetworkDrawChatMessageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected