Win32 - a few minor main loop tweaks

This commit is contained in:
adelikat 2008-12-19 06:37:41 +00:00
parent 6dc917231f
commit 9716bd99e3
2 changed files with 5 additions and 3 deletions

View File

@ -237,10 +237,12 @@ void DoCDLogger(){
}
void UpdateCDLogger(){
if(!hCDLogger)return;
char str[50];
float fcodecount = codecount, fdatacount = datacount,
fundefinedcount = undefinedcount, fromsize = PRGsize[0];
if(!hCDLogger)return;
sprintf(str,"0x%06x %.2f%%",codecount,fcodecount/fromsize*100);
SetDlgItemText(hCDLogger,LBL_CDLOGGER_CODECOUNT,str);
sprintf(str,"0x%06x %.2f%%",datacount,fdatacount/fromsize*100);

View File

@ -320,6 +320,7 @@ void UnloadTableFile(){
}
void UpdateMemoryView(int draw_all)
{
if (!hMemView) return;
int MemFontWidth = debugSystem->fixedFontWidth;
int MemFontHeight = debugSystem->fixedFontHeight;
@ -328,8 +329,7 @@ void UpdateMemoryView(int draw_all)
//int curlength;
char str[100];
char str2[100];
if (!hMemView) return;
/*
if(draw_all){
for(i = CurOffset;i < CurOffset+DataAmount;i+=16){