updates subwcrev and applies minor fixes patch 46
This commit is contained in:
parent
da5cc60685
commit
b6ffe99fc8
|
@ -455,11 +455,10 @@ IMAGE_TYPE utilFindType(const char *file, char (&buffer)[2048])
|
|||
pwText = new wchar_t[dwNum];
|
||||
if(!pwText)
|
||||
{
|
||||
delete []pwText;
|
||||
return IMAGE_UNKNOWN;
|
||||
}
|
||||
MultiByteToWideChar (CP_ACP, 0, file, -1, pwText, dwNum );
|
||||
char* file_conv = fex_wide_to_path( pwText);
|
||||
delete []pwText;
|
||||
// if ( !utilIsImage( file_conv ) ) // TODO: utilIsArchive() instead?
|
||||
// {
|
||||
fex_t* fe = scan_arc(file_conv,utilIsImage,buffer);
|
||||
|
@ -503,7 +502,7 @@ u8 *utilLoad(const char *file,
|
|||
pwText = new wchar_t[dwNum];
|
||||
if(!pwText)
|
||||
{
|
||||
delete []pwText;
|
||||
return NULL;
|
||||
}
|
||||
MultiByteToWideChar (CP_ACP, 0, file, -1, pwText, dwNum );
|
||||
char* file_conv = fex_wide_to_path( pwText);
|
||||
|
@ -720,4 +719,4 @@ bool utilFileExists( const char *filename )
|
|||
fclose( f );
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,7 +266,7 @@ void gbRenderLine()
|
|||
|
||||
//bx >>= ((gbSCXLine[0]+(((swx>1) && (swx != 7)) ? 1 : 0)) & 7);
|
||||
|
||||
if ((swx == 7))
|
||||
if (swx == 7)
|
||||
{
|
||||
//wx = 0;
|
||||
if ((gbWindowLine>0) || (wy == 0))
|
||||
|
@ -572,4 +572,4 @@ void gbDrawSprites(bool draw)
|
|||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1058,7 +1058,7 @@ void elfParseCFA(u8 *top)
|
|||
|
||||
if(id == 0xffffffff) {
|
||||
// skip version
|
||||
(*data++);
|
||||
(*data)++;
|
||||
|
||||
ELFcie *cie = (ELFcie *)calloc(1, sizeof(ELFcie));
|
||||
|
||||
|
|
|
@ -125,6 +125,7 @@ int desktopHeight = 0;
|
|||
|
||||
Filter filter = kStretch2x;
|
||||
u8 *delta = NULL;
|
||||
static const int delta_size = 322*242*4;
|
||||
|
||||
int filter_enlarge = 2;
|
||||
|
||||
|
@ -1395,7 +1396,7 @@ void sdlPollEvents()
|
|||
soundPause();
|
||||
}
|
||||
|
||||
memset(delta,255,sizeof(delta));
|
||||
memset(delta,255,delta_size);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -2311,8 +2312,8 @@ int main(int argc, char **argv)
|
|||
utilUpdateSystemColorMaps();
|
||||
|
||||
if(delta == NULL) {
|
||||
delta = (u8*)malloc(322*242*4);
|
||||
memset(delta, 255, 322*242*4);
|
||||
delta = (u8*)malloc(delta_size);
|
||||
memset(delta, 255, delta_size);
|
||||
}
|
||||
|
||||
ifbFunction = initIFBFilter(ifbType, systemColorDepth);
|
||||
|
|
Loading…
Reference in New Issue