mirror of
https://github.com/neon443/ColourCam3DS.git
synced 2026-03-11 13:26:17 +00:00
add crosshair fr, and fix the getcolor to match it
This commit is contained in:
@@ -32,6 +32,14 @@ void writePicToFBuff(void *fb, void *img, u16 x, u16 y) {
|
|||||||
uint8_t b = ((data >> 11) & 0x1F) << 3;
|
uint8_t b = ((data >> 11) & 0x1F) << 3;
|
||||||
uint8_t g = ((data >> 5) & 0x3F) << 2;
|
uint8_t g = ((data >> 5) & 0x3F) << 2;
|
||||||
uint8_t r = (data & 0x1F) << 3;
|
uint8_t r = (data & 0x1F) << 3;
|
||||||
|
|
||||||
|
if(((j>110 && j<130) && (i>198 && i<202)) || ((i>190 && i<210) && (j>118 && j<122))) {
|
||||||
|
fb_8[v] = 200;
|
||||||
|
fb_8[v+1] = 200;
|
||||||
|
fb_8[v+2] = 200;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
fb_8[v] = r;
|
fb_8[v] = r;
|
||||||
fb_8[v+1] = g;
|
fb_8[v+1] = g;
|
||||||
fb_8[v+2] = b;
|
fb_8[v+2] = b;
|
||||||
@@ -127,7 +135,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
gfxSet3D(false);
|
gfxSet3D(false);
|
||||||
writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0);
|
writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0);
|
||||||
getColor(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), 100, 120);
|
getColor(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), 200, 120);
|
||||||
|
|
||||||
gfxFlushBuffers();
|
gfxFlushBuffers();
|
||||||
gspWaitForVBlank();
|
gspWaitForVBlank();
|
||||||
|
|||||||
Reference in New Issue
Block a user