MCPcopy Create free account
hub / github.com/MyGUI/mygui / copyArea

Method copyArea

Plugins/Plugin_HikariWidget/RenderBuffer.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void RenderBuffer::copyArea(RECT srcRect, unsigned char* srcBuffer, int srcRowSpan)
67{
68 if (srcRect.right <= width && srcRect.bottom <= height)
69 {
70 int srcWidth = srcRect.right - srcRect.left;
71 int srcHeight = srcRect.bottom - srcRect.top;
72
73 for (int row = 0; row < srcHeight; row++)
74 memcpy(
75 buffer + (row + srcRect.top) * rowSpan + (srcRect.left * 4),
76 srcBuffer + row * srcRowSpan,
77 srcWidth * 4);
78 }
79}
80
81void RenderBuffer::blitBGR(unsigned char* destBuffer, int destRowSpan, int destDepth)
82{

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected