mirror of
https://github.com/neon443/ColourCam3DS.git
synced 2026-03-11 05:19:13 +00:00
maybe fix the square
This commit is contained in:
@@ -4,17 +4,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <3ds.h>
|
#include <3ds.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <malloc.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <3ds.h>
|
|
||||||
#include <sys/dirent.h>
|
|
||||||
#include <sys/errno.h>
|
|
||||||
#include <sys/unistd.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
|
|
||||||
#define WIDTH 400
|
#define WIDTH 400
|
||||||
#define HEIGHT 240
|
#define HEIGHT 240
|
||||||
#define SCREENSIZE WIDTH * HEIGHT * 2
|
#define SCREENSIZE WIDTH * HEIGHT * 2
|
||||||
@@ -35,7 +24,7 @@ void writePicToFBuff(void *fb, void *img, u16 x, u16 y) {
|
|||||||
u16 *img_16 = (u16*) img;
|
u16 *img_16 = (u16*) img;
|
||||||
int i, j, drawx, drawy;
|
int i, j, drawx, drawy;
|
||||||
for(j = 0; j < HEIGHT; j++) {
|
for(j = 0; j < HEIGHT; j++) {
|
||||||
for(i = 0; i < HEIGHT; i++) {
|
for(i = 0; i < WIDTH; i++) {
|
||||||
drawy = y + HEIGHT - j;
|
drawy = y + HEIGHT - j;
|
||||||
drawx = x + i;
|
drawx = x + i;
|
||||||
u32 v = (drawy + drawx * HEIGHT) * 3;
|
u32 v = (drawy + drawx * HEIGHT) * 3;
|
||||||
@@ -124,7 +113,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
// Your code goes here
|
// Your code goes here
|
||||||
u32 kDown = hidKeysDown();
|
u32 kDown = hidKeysDown();
|
||||||
if (kDown & KEY_START) {
|
if (kDown & KEY_R) {
|
||||||
printf("start presed\n");
|
printf("start presed\n");
|
||||||
buf = flushBuffs(buf);
|
buf = flushBuffs(buf);
|
||||||
gfxFlushBuffers();
|
gfxFlushBuffers();
|
||||||
|
|||||||
Reference in New Issue
Block a user