summaryrefslogtreecommitdiff
path: root/ldmicro/miscutil.cpp
diff options
context:
space:
mode:
authorRr422018-06-25 09:51:09 +0530
committerRr422018-06-25 09:51:09 +0530
commit64c5d19d9febf624c6e5e7f586b781ee66097761 (patch)
tree06fc93609efb6ab2eb84635be2826560a955dfe9 /ldmicro/miscutil.cpp
parent27ba12ab2e6014f80b7391a5f765f6cd657f5707 (diff)
downloadLDMicroGtk-64c5d19d9febf624c6e5e7f586b781ee66097761.tar.gz
LDMicroGtk-64c5d19d9febf624c6e5e7f586b781ee66097761.tar.bz2
LDMicroGtk-64c5d19d9febf624c6e5e7f586b781ee66097761.zip
Fixed bug where the status bar did not show all statuses.
Diffstat (limited to 'ldmicro/miscutil.cpp')
-rw-r--r--ldmicro/miscutil.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/ldmicro/miscutil.cpp b/ldmicro/miscutil.cpp
index fb3275a..882cccd 100644
--- a/ldmicro/miscutil.cpp
+++ b/ldmicro/miscutil.cpp
@@ -53,12 +53,12 @@ HFONT MyFixedFont;
//-----------------------------------------------------------------------------
void dbp(char *str, ...)
{
- va_list f;
- char buf[1024];
- va_start(f, str);
- vsprintf(buf, str, f);
- OutputDebugString(buf);
- OutputDebugString("\n");
+ // va_list f;
+ // char buf[1024];
+ // va_start(f, str);
+ // vsprintf(buf, str, f);
+ // OutputDebugString(buf);
+ // OutputDebugString("\n");
}
//-----------------------------------------------------------------------------
@@ -132,26 +132,26 @@ void CompileSuccessfulMessage(char *str)
//-----------------------------------------------------------------------------
void CheckHeap(char *file, int line)
{
- static unsigned int SkippedCalls;
- static SDWORD LastCallTime;
- SDWORD now = GetTickCount();
-
- // It slows us down too much to do the check every time we are called;
- // but let's still do the check periodically; let's do it every 70
- // calls or every 20 ms, whichever is sooner.
- if(SkippedCalls < 70 && (now - LastCallTime) < 20) {
- SkippedCalls++;
- return;
- }
+ // static unsigned int SkippedCalls;
+ // static SDWORD LastCallTime;
+ // SDWORD now = GetTickCount();
+
+ // // It slows us down too much to do the check every time we are called;
+ // // but let's still do the check periodically; let's do it every 70
+ // // calls or every 20 ms, whichever is sooner.
+ // if(SkippedCalls < 70 && (now - LastCallTime) < 20) {
+ // SkippedCalls++;
+ // return;
+ // }
- SkippedCalls = 0;
- LastCallTime = now;
+ // SkippedCalls = 0;
+ // LastCallTime = now;
- // if(!HeapValidate(MainHeap, 0, NULL)) {
- // dbp("file %s line %d", file, line);
- // Error("Noticed memory corruption at file '%s' line %d.", file, line);
- // oops();
- // }
+ // // if(!HeapValidate(MainHeap, 0, NULL)) {
+ // // dbp("file %s line %d", file, line);
+ // // Error("Noticed memory corruption at file '%s' line %d.", file, line);
+ // // oops();
+ // // }
}
//-----------------------------------------------------------------------------