mirror of
https://github.com/neon443/ColourCam3DS.git
synced 2026-03-11 05:19:13 +00:00
itd be nice to have space in the buffer before putting more stuff in it lol
This commit is contained in:
@@ -120,19 +120,21 @@ int main(int argc, char* argv[])
|
|||||||
while (aptMainLoop())
|
while (aptMainLoop())
|
||||||
{
|
{
|
||||||
hidScanInput();
|
hidScanInput();
|
||||||
|
|
||||||
// Your code goes here
|
// Your code goes here
|
||||||
u32 kDown = hidKeysDown();
|
u32 kDown = hidKeysDown();
|
||||||
if (kDown & KEY_START) {
|
if (kDown & KEY_START) {
|
||||||
printf("start presed\n");
|
printf("start presed\n");
|
||||||
takePicture(buf);
|
|
||||||
flushBuffs(buf);
|
flushBuffs(buf);
|
||||||
gfxFlushBuffers();
|
gfxFlushBuffers();
|
||||||
|
|
||||||
gspWaitForVBlank();
|
gspWaitForVBlank();
|
||||||
gfxSwapBuffers();
|
gfxSwapBuffers();
|
||||||
|
|
||||||
|
takePicture(buf);
|
||||||
// break; // break in order to return to hbmenu
|
// break; // break in order to return to hbmenu
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
gfxFlushBuffers();
|
gfxFlushBuffers();
|
||||||
|
|||||||
Reference in New Issue
Block a user