MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / flipBitmap

Function flipBitmap

source/ui/utils/readIcons.cpp:323–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static void flipBitmap(unsigned char* data, int stride, int height) {
324 int i1 = 0;
325 int i2 = (height - 1) * stride;
326 for (int i = 0; i < height / 2; i++) {
327 for (int index = 0; index < stride; index++) {
328 unsigned char b = data[index + i1];
329 data[index + i1] = data[index + i2];
330 data[index + i2] = b;
331 }
332 i1 += stride;
333 i2 -= stride;
334 }
335}
336
337static void swapRGB(U8* data, int height, int width) {
338 for (int y=0;y<height;y++) {

Callers 1

loadDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected