Subversion Repositories psp

Compare Revisions

Ignore whitespace Rev 2449 → Rev 2450

/trunk/pspsdk/src/debug/scr_printf.c
38,6 → 38,7
static int g_vram_offset = 0;
static int g_vram_mode = PSP_DISPLAY_PIXEL_FORMAT_8888;
static int init = 0;
static int clearline_en = 1;
 
static u16 convert_8888_to_565(u32 color)
{
328,17 → 329,32
 
void _pspDebugScreenClearLine( int Y)
{
int i;
 
if(bg_enable)
if(clearline_en)
{
for (i=0; i < MX; i++)
int i;
if(bg_enable)
{
pspDebugScreenPutChar( i*7 , Y * 8, bg_col, 219);
for (i=0; i < MX; i++)
{
pspDebugScreenPutChar( i*7 , Y * 8, bg_col, 219);
}
}
}
return;
}
 
void pspDebugScreenClearLineEnable(void)
{
clearline_en = 1;
return;
}
 
void pspDebugScreenClearLineDisable(void)
{
clearline_en = 0;
return;
}
 
/* Print non-nul terminated strings */
int pspDebugScreenPrintData(const char *buff, int size)
{
/trunk/pspsdk/src/debug/pspdebug.h
165,6 → 165,16
*/
int pspDebugGetStackTrace(unsigned int* results, int max);
 
/**
* Enable the clear line function that allows debug to clear the screen
*/
void pspDebugScreenClearLineEnable(void);
 
/**
* Disable the clear line function that causes flicker on constant refreshes
*/
void pspDebugScreenClearLineDisable(void);
 
/** Structure to hold the register data associated with an exception */
typedef struct _PspDebugRegBlock
{