Remove the following code as they are not need outside of my application and then I believe you are all set and ready to go.
Delete Declarations:
Code: Select all
typedef void (*BlitScreenToScreen)(int, int, s_screen*);
void blitScreenToScreenLCD(int width, int height, s_screen* source);
void blitScreenToScreenTV(int width, int height, s_screen* source);
static BlitScreenToScreen pBlitScreenToScreen;
Delete Assignments:
Code: Select all
pBlitScreenToScreen = blitScreenToScreenLCD;
pBlitScreenToScreen = blitScreenToScreenTV;
Delete Functions:
Code: Select all
void blitScreenToScreen(int width, int height, s_screen* source)
{
	pBlitScreenToScreen(width, height, source);
}
void blitScreenToScreenLCD(int width, int height, s_screen* source)
{
	if(!initialized) return;
	sceKernelDcacheWritebackInvalidateAll();
	guStart();
	sceGuClutMode(GU_PSM_8888, 0, 255, 0);
	sceGuClutLoad((32), palette);
	sceGuTexMode(GU_PSM_T8, 0, 0, 0);  
	sceGuTexImage(0, 512, 512, source->width, source->data);
	sceGuTexFunc(GU_TFX_REPLACE, GU_TCC_RGB);
	sceGuTexFilter(texFilter, texFilter);
	tVertexTexture texture;
	setVertexTexture(&texture, width, height, 16, screenWidth, screenHeight, screenLeft, screenTop);
	do
	{
		getVertexTexture(&texture);
		guDrawSprite(&texture);
	}
	while(texture.output_last == 0);
	sceGuFinish();
    sceGuSync(0, 0);
}
void blitScreenToScreenTV(int width, int height, s_screen* source)
{
	if(!initialized) return;
	sceKernelDcacheWritebackInvalidateAll();
	guStart();
	sceGuClutMode(GU_PSM_8888, 0, 255, 0);
	sceGuClutLoad((32), palette);
	sceGuTexMode(GU_PSM_T8, 0, 0, 0);  
	sceGuTexImage(0, 512, 512, source->width, source->data);
	sceGuTexFunc(GU_TFX_REPLACE, GU_TCC_RGB);
	sceGuTexFilter(texFilter, texFilter);
	tVertexTexture texture;
	setVertexTexture(&texture, width, height, 16, screenWidth, screenHeight, screenLeft, screenTop);
	do
	{
		getVertexTexture(&texture);
		guDrawSprite(&texture);
	}
	while(texture.output_last == 0);
	sceGuFinish();
    sceGuSync(0, 0);
}