Win32 - a few minor main loop tweaks
This commit is contained in:
parent
6dc917231f
commit
9716bd99e3
|
@ -237,10 +237,12 @@ void DoCDLogger(){
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateCDLogger(){
|
void UpdateCDLogger(){
|
||||||
|
if(!hCDLogger)return;
|
||||||
|
|
||||||
char str[50];
|
char str[50];
|
||||||
float fcodecount = codecount, fdatacount = datacount,
|
float fcodecount = codecount, fdatacount = datacount,
|
||||||
fundefinedcount = undefinedcount, fromsize = PRGsize[0];
|
fundefinedcount = undefinedcount, fromsize = PRGsize[0];
|
||||||
if(!hCDLogger)return;
|
|
||||||
sprintf(str,"0x%06x %.2f%%",codecount,fcodecount/fromsize*100);
|
sprintf(str,"0x%06x %.2f%%",codecount,fcodecount/fromsize*100);
|
||||||
SetDlgItemText(hCDLogger,LBL_CDLOGGER_CODECOUNT,str);
|
SetDlgItemText(hCDLogger,LBL_CDLOGGER_CODECOUNT,str);
|
||||||
sprintf(str,"0x%06x %.2f%%",datacount,fdatacount/fromsize*100);
|
sprintf(str,"0x%06x %.2f%%",datacount,fdatacount/fromsize*100);
|
||||||
|
|
|
@ -320,6 +320,7 @@ void UnloadTableFile(){
|
||||||
}
|
}
|
||||||
void UpdateMemoryView(int draw_all)
|
void UpdateMemoryView(int draw_all)
|
||||||
{
|
{
|
||||||
|
if (!hMemView) return;
|
||||||
int MemFontWidth = debugSystem->fixedFontWidth;
|
int MemFontWidth = debugSystem->fixedFontWidth;
|
||||||
int MemFontHeight = debugSystem->fixedFontHeight;
|
int MemFontHeight = debugSystem->fixedFontHeight;
|
||||||
|
|
||||||
|
@ -328,8 +329,7 @@ void UpdateMemoryView(int draw_all)
|
||||||
//int curlength;
|
//int curlength;
|
||||||
char str[100];
|
char str[100];
|
||||||
char str2[100];
|
char str2[100];
|
||||||
if (!hMemView) return;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if(draw_all){
|
if(draw_all){
|
||||||
for(i = CurOffset;i < CurOffset+DataAmount;i+=16){
|
for(i = CurOffset;i < CurOffset+DataAmount;i+=16){
|
||||||
|
|
Loading…
Reference in New Issue