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

Function flipRGBBitmap

source/util/player.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "stb_image.h"
28
29static void flipRGBBitmap(unsigned char* data, int stride, int height) {
30 for (int y = 0; y < height; y++) {
31 for (int x = 0; x < stride; x += 4) {
32 unsigned char b = data[x];
33 data[x] = data[x + 2];
34 data[x + 2] = b;
35 }
36 data += stride;
37 }
38}
39
40Player* Player::instance;
41

Callers 1

runSliceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected