mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-25 20:16:53 +01:00
video corrections, disable read-ahead cache
This commit is contained in:
parent
093dca1d66
commit
59b7c2f6d3
@ -188,8 +188,8 @@ bool MountFAT(int method)
|
|||||||
mounted = false;
|
mounted = false;
|
||||||
else if(!fatMountSimple(name, disc))
|
else if(!fatMountSimple(name, disc))
|
||||||
mounted = false;
|
mounted = false;
|
||||||
else
|
//else
|
||||||
fatEnableReadAhead(name, 6, 64);
|
// fatEnableReadAhead(name, 6, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
isMounted[method] = mounted;
|
isMounted[method] = mounted;
|
||||||
|
@ -25,7 +25,7 @@ u32 FrameTimer = 0;
|
|||||||
|
|
||||||
/*** External 2D Video ***/
|
/*** External 2D Video ***/
|
||||||
/*** 2D Video Globals ***/
|
/*** 2D Video Globals ***/
|
||||||
GXRModeObj *vmode = NULL; // Graphics Mode Object
|
static GXRModeObj *vmode = NULL; // Graphics Mode Object
|
||||||
unsigned int *xfb[2]; // Framebuffers
|
unsigned int *xfb[2]; // Framebuffers
|
||||||
int whichfb = 0; // Frame buffer toggle
|
int whichfb = 0; // Frame buffer toggle
|
||||||
|
|
||||||
@ -34,17 +34,17 @@ int screenheight;
|
|||||||
/*** 3D GX ***/
|
/*** 3D GX ***/
|
||||||
#define DEFAULT_FIFO_SIZE ( 256 * 1024 )
|
#define DEFAULT_FIFO_SIZE ( 256 * 1024 )
|
||||||
static u8 gp_fifo[DEFAULT_FIFO_SIZE] ATTRIBUTE_ALIGN(32);
|
static u8 gp_fifo[DEFAULT_FIFO_SIZE] ATTRIBUTE_ALIGN(32);
|
||||||
unsigned int copynow = GX_FALSE;
|
static unsigned int copynow = GX_FALSE;
|
||||||
|
|
||||||
/*** Texture memory ***/
|
/*** Texture memory ***/
|
||||||
static u8 *texturemem = NULL;
|
static u8 *texturemem = NULL;
|
||||||
static int texturesize;
|
static int texturesize;
|
||||||
|
|
||||||
GXTexObj texobj;
|
static GXTexObj texobj;
|
||||||
static Mtx view;
|
static Mtx view;
|
||||||
static int vwidth, vheight;
|
static int vwidth, vheight;
|
||||||
static int video_vaspect, video_haspect;
|
static int video_vaspect, video_haspect;
|
||||||
int updateScaling;
|
static int updateScaling;
|
||||||
bool progressive = false;
|
bool progressive = false;
|
||||||
|
|
||||||
/* New texture based scaler */
|
/* New texture based scaler */
|
||||||
@ -214,9 +214,9 @@ static void draw_square(Mtx v)
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* StartGX
|
* StartGX
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
void GX_Start()
|
static void GX_Start()
|
||||||
{
|
{
|
||||||
Mtx p;
|
Mtx44 p;
|
||||||
|
|
||||||
GXColor background = { 0, 0, 0, 0xff };
|
GXColor background = { 0, 0, 0, 0xff };
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ void GX_Start()
|
|||||||
*
|
*
|
||||||
* called by postRetraceCallback in InitGCVideo - scans gcpad and wpad
|
* called by postRetraceCallback in InitGCVideo - scans gcpad and wpad
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
void
|
static void
|
||||||
UpdatePadsCB ()
|
UpdatePadsCB ()
|
||||||
{
|
{
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
@ -345,7 +345,7 @@ void InitialiseVideo ()
|
|||||||
InitVideoThread ();
|
InitVideoThread ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateScaling()
|
static void UpdateScaling()
|
||||||
{
|
{
|
||||||
int xscale;
|
int xscale;
|
||||||
int yscale;
|
int yscale;
|
||||||
@ -395,7 +395,7 @@ void
|
|||||||
ResetVideo_Emu ()
|
ResetVideo_Emu ()
|
||||||
{
|
{
|
||||||
GXRModeObj *rmode;
|
GXRModeObj *rmode;
|
||||||
Mtx p;
|
Mtx44 p;
|
||||||
|
|
||||||
rmode = vmode; // same mode as menu
|
rmode = vmode; // same mode as menu
|
||||||
|
|
||||||
@ -448,7 +448,7 @@ ResetVideo_Emu ()
|
|||||||
void
|
void
|
||||||
ResetVideo_Menu ()
|
ResetVideo_Menu ()
|
||||||
{
|
{
|
||||||
Mtx p;
|
Mtx44 p;
|
||||||
|
|
||||||
VIDEO_Configure (vmode);
|
VIDEO_Configure (vmode);
|
||||||
VIDEO_ClearFrameBuffer (vmode, xfb[whichfb], COLOR_BLACK);
|
VIDEO_ClearFrameBuffer (vmode, xfb[whichfb], COLOR_BLACK);
|
||||||
|
Loading…
Reference in New Issue
Block a user