Changed GPU_screen to u8 *
This commit is contained in:
parent
abc9d733b2
commit
cc2a52a3a2
|
@ -37,7 +37,7 @@ Screen SubScreen;
|
|||
|
||||
//#define DEBUG_TRI
|
||||
|
||||
u16 GPU_screen[2*256*192];
|
||||
u8 GPU_screen[4*256*192];
|
||||
|
||||
short sizeTab[4][4][2] =
|
||||
{
|
||||
|
|
|
@ -100,7 +100,7 @@ struct _GPU
|
|||
void (*spriteRender)(GPU * gpu, u16 l, u8 * dst, u8 * prioTab);
|
||||
};
|
||||
|
||||
extern u16 GPU_screen[2*256*192];
|
||||
extern u8 GPU_screen[4*256*192];
|
||||
|
||||
GPU * GPU_Init(u8 l);
|
||||
void GPU_Reset(GPU *g, u8 l);
|
||||
|
@ -132,9 +132,7 @@ void Screen_DeInit(void);
|
|||
static INLINE void GPU_ligne(Screen * screen, u16 l)
|
||||
{
|
||||
GPU * gpu = screen->gpu;
|
||||
//u16 * dst = GPU_screen + (screen->offset + l) * 256;
|
||||
u8 * dst = GPU_screen + (screen->offset + l) * 256;
|
||||
//u16 spr[256];
|
||||
u8 * dst = GPU_screen + (screen->offset + l) * 512;
|
||||
u8 spr[512];
|
||||
u8 sprPrio[256];
|
||||
u8 bgprio;
|
||||
|
|
|
@ -447,7 +447,7 @@ int NDS_WriteBMP(const char *filename)
|
|||
bmpimgheader_struct imageheader;
|
||||
FILE *file;
|
||||
int i,j,k;
|
||||
u16 *bmp = GPU_screen;
|
||||
u16 * bmp = GPU_screen;
|
||||
|
||||
memset(&fileheader, 0, sizeof(fileheader));
|
||||
fileheader.size = sizeof(fileheader);
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <zlib.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "saves.h"
|
||||
#include "MMU.h"
|
||||
#include "NDSSystem.h"
|
||||
|
|
Loading…
Reference in New Issue