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

Method blitBGR

Plugins/Plugin_HikariWidget/RenderBuffer.cpp:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void RenderBuffer::blitBGR(unsigned char* destBuffer, int destRowSpan, int destDepth)
82{
83 if (destDepth == 3)
84 {
85 for (int row = 0; row < height; row++)
86 for (int col = 0; col < width; col++)
87 memcpy(destBuffer + row * destRowSpan + col * 3, buffer + row * rowSpan + col * 4, 3);
88 }
89 else if (destDepth == 4)
90 {
91 for (int row = 0; row < height; row++)
92 memcpy(destBuffer + row * destRowSpan, buffer + row * rowSpan, rowSpan);
93 }
94}

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected