Changed GPU_screen to u8 *

This commit is contained in:
yabause 2006-12-01 21:33:45 +00:00
parent abc9d733b2
commit cc2a52a3a2
4 changed files with 5 additions and 6 deletions

View File

@ -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] =
{

View File

@ -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;

View File

@ -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);

View File

@ -22,6 +22,7 @@
#include <zlib.h>
#endif
#include <stdio.h>
#include <string.h>
#include "saves.h"
#include "MMU.h"
#include "NDSSystem.h"