Skip to content

Commit 03d698c

Browse files
committed
Added GetInfo (295) to show times output window redrawn
1 parent b85d41a commit 03d698c

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

doc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ CString str;
10281028
m_iInputPacketCount = 0;
10291029
m_iOutputPacketCount = 0;
10301030
m_iUTF8ErrorCount = 0;
1031-
1031+
m_iOutputWindowRedrawCount = 0;
10321032

10331033
str = TFormat ("Connecting to %s, port %d",
10341034
(const char *) m_mush_name, m_port);

doc.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,10 @@ class CMUSHclientDoc : public CDocument
924924
// cleared if we get IAC WONT ECHO
925925
bool m_bDebugIncomingPackets; // set if we want to display all incoming text
926926

927-
__int64 m_iInputPacketCount; // count of packets received
928-
__int64 m_iOutputPacketCount; // count of packets sent
929-
long m_iUTF8ErrorCount; // count of lines with bad UTF8
927+
__int64 m_iInputPacketCount; // count of packets received
928+
__int64 m_iOutputPacketCount; // count of packets sent
929+
long m_iUTF8ErrorCount; // count of lines with bad UTF8
930+
long m_iOutputWindowRedrawCount; // count of times output window redrawn
930931

931932
long m_iTriggersEvaluatedCount; // how many triggers we evaluated
932933
long m_iTriggersMatchedCount; // how many triggers matched

install/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MUSHclient version 4.54
22
=======================
33

4-
Saturday, 17th July 2010
4+
Tuesday, 20th July 2010
55

66
Author: Nick Gammon
77
Web support: http://www.gammon.com.au/forum/

mushview.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,8 @@ ASSERT_VALID(pDoc);
876876
if (!pDoc->m_FontHeight)
877877
return;
878878

879+
// sigh. How many times did we do this?
880+
pDoc->m_iOutputWindowRedrawCount++;
879881

880882
pDC->SelectClipRgn (NULL);
881883

scripting/methods.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4285,6 +4285,7 @@ tInfoTypeMapping InfoTypes [] =
42854285
{ 292, "Actual text rectangle - right" },
42864286
{ 293, "Actual text rectangle - bottom" },
42874287
{ 294, "State of keyboard modifiers" },
4288+
{ 295, "Times output window redrawn" },
42884289

42894290

42904291
// (dates - calculated at runtime)
@@ -5001,6 +5002,10 @@ VARIANT CMUSHclientDoc::GetInfo(long InfoType)
50015002
}
50025003
break; // state of virtual keys
50035004

5005+
case 295:
5006+
SetUpVariantLong (vaResult, m_iOutputWindowRedrawCount);
5007+
break; // state of virtual keys
5008+
50045009
case 301:
50055010
if (m_tConnectTime.GetTime ()) // only if non-zero, otherwise return empty
50065011
SetUpVariantDate (vaResult, COleDateTime (m_tConnectTime.GetTime ()));

stdafx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,6 @@ long LoadPngMemory (unsigned char * Buffer, const size_t Length, HBITMAP & hbmp,
916916
void ChangeToFileBrowsingDirectory ();
917917
void ChangeToStartupDirectory ();
918918

919-
#define SCRIPTERRORFORECOLOUR "darkorange"
919+
#define SCRIPTERRORFORECOLOUR "orangered" // "darkorange"
920920
#define SCRIPTERRORBACKCOLOUR "black"
921921
#define SCRIPTERRORCONTEXTFORECOLOUR "burlywood"

xml/xml_load_world.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ LONGLONG iCounterFrequency = large_int_frequency.QuadPart;
557557
m_CurrentPlugin = pCurrentPlugin;
558558
if (iLineLastItemFound == 0)
559559
iLineLastItemFound = parser.m_xmlLine;
560-
HandleLoadException ("problem in this file", e);
560+
HandleLoadException ("Cannot load", e);
561561
AfxThrowArchiveException (CArchiveException::badSchema);
562562
}
563563

0 commit comments

Comments
 (0)