mirror of
https://github.com/neon443/ColourCam3DS.git
synced 2026-03-11 13:26:17 +00:00
memory fixes
This commit is contained in:
@@ -120,9 +120,7 @@ int main(int argc, char* argv[])
|
|||||||
while (aptMainLoop())
|
while (aptMainLoop())
|
||||||
{
|
{
|
||||||
hidScanInput();
|
hidScanInput();
|
||||||
gspWaitForVBlank();
|
|
||||||
gfxSwapBuffers();
|
|
||||||
|
|
||||||
// Your code goes here
|
// Your code goes here
|
||||||
u32 kDown = hidKeysDown();
|
u32 kDown = hidKeysDown();
|
||||||
if (kDown & KEY_START) {
|
if (kDown & KEY_START) {
|
||||||
@@ -134,11 +132,16 @@ int main(int argc, char* argv[])
|
|||||||
gfxSwapBuffers();
|
gfxSwapBuffers();
|
||||||
// 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();
|
||||||
|
gspWaitForVBlank();
|
||||||
|
gfxSwapBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(buf);
|
||||||
|
|
||||||
gfxExit();
|
gfxExit();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user