aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-02-05 09:05:48 +0000
committernyamatongwe <devnull@localhost>2003-02-05 09:05:48 +0000
commit383ac8a1c2cb615c552119fd31f435ab29e7070b (patch)
tree05aee0b8730ba1e29e71ec82a3d22fa42e7f386b /win32/ScintillaWin.cxx
parent284fe925ec037537535aa9ecdec5a8cb15ad825c (diff)
downloadscintilla-mirror-383ac8a1c2cb615c552119fd31f435ab29e7070b.tar.gz
Moved IsNT to PlatWin and cached the result.
Change maximum number of pixels when measuring text on NT to be 1000000 rather than 30000 possible on Windows. Increased size of Unicode buffers to 10000 elements to handle longer paragraphs of text.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 983a5906f..6f0204362 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -87,6 +87,11 @@
#define MK_ALT 32
#endif
+// Functions imported from PlatWin
+extern bool IsNT();
+extern void Platform_Initialise(void *hInstance);
+extern void Platform_Finalise();
+
/** TOTAL_CONTROL ifdef surrounds code that will only work when ScintillaWin
* is derived from ScintillaBase (all features) rather than directly from Editor
* (lightweight editor).
@@ -407,12 +412,6 @@ LRESULT ScintillaWin::WndPaint(uptr_t wParam) {
return 0l;
}
-static BOOL IsNT() {
- OSVERSIONINFO osv = {sizeof(OSVERSIONINFO),0,0,0,0,""};
- ::GetVersionEx(&osv);
- return osv.dwPlatformId == VER_PLATFORM_WIN32_NT;
-}
-
sptr_t ScintillaWin::HandleComposition(uptr_t wParam, sptr_t lParam) {
#ifdef __DMC__
// Digital Mars compiler does not include Imm library
@@ -1980,9 +1979,6 @@ sptr_t PASCAL ScintillaWin::SWndProc(
}
}
-extern void Platform_Initialise(void *hInstance);
-extern void Platform_Finalise();
-
// This function is externally visible so it can be called from container when building statically.
// Must be called once only.
bool Scintilla_RegisterClasses(void *hInstance) {