PocketFrog 0.7
in pixel = 25720
out Color returns 2307
Why is that?
- Code:
Pixel src = buffer.pixels[(y) * dy + x];
int R = (src & RED_MASK) >> RED_SHIFT; // Get the red part of the pixel
int G = (src & GREEN_MASK)>> GREEN_SHIFT ; // Green part
int B = src & BLUE_MASK; // Blue part
buffer2.pixels[y * dy2 + x] = Color(R,G,B);
in pixel = 25720
out Color returns 2307
Why is that?