From 4eefcbc170bbb0647d4828dbc1a0f93399e2db95 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 22 Jun 2000 05:49:23 +0000 Subject: Removed deprecated APIs. Added gets to match sets for UndoCollection, BufferedDraw, CodePage, UsePalette, ReadOnly, CaretFore, and ModEventMask. Undo collection status is a bool again - enumeration deprecated. Timing code commented out. --- win32/ScintillaWin.cxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'win32/ScintillaWin.cxx') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 25af77f99..140d0de87 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -289,11 +289,11 @@ LRESULT ScintillaWin::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { case WM_PAINT: { //CElapsed ce; ce.Begin(); - LARGE_INTEGER perfStart; - LARGE_INTEGER perfEnd; - LARGE_INTEGER performanceFreq; - QueryPerformanceFrequency(&performanceFreq); - QueryPerformanceCounter(&perfStart); + //LARGE_INTEGER perfStart; + //LARGE_INTEGER perfEnd; + //LARGE_INTEGER performanceFreq; + //QueryPerformanceFrequency(&performanceFreq); + //QueryPerformanceCounter(&perfStart); paintState = painting; PAINTSTRUCT ps; BeginPaint(wMain.GetID(), &ps); @@ -316,13 +316,13 @@ LRESULT ScintillaWin::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) { FullPaint(); } paintState = notPainting; - QueryPerformanceCounter(&perfEnd); - __int64 start = perfStart.QuadPart; - __int64 end = perfEnd.QuadPart; - __int64 freq = performanceFreq.QuadPart; - __int64 dur = end - start; - double per = double(dur) / double(freq); - Platform::DebugPrintf("Paint took %5.03g\n", per); + //QueryPerformanceCounter(&perfEnd); + //__int64 start = perfStart.QuadPart; + //__int64 end = perfEnd.QuadPart; + //__int64 freq = performanceFreq.QuadPart; + //__int64 dur = end - start; + //double per = double(dur) / double(freq); + //Platform::DebugPrintf("Paint took %5.03g\n", per); //Platform::DebugPrintf("Paint took %g\n", ce.End()); } break; -- cgit v1.2.3