aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-06-14 23:48:14 +1000
committernyamatongwe <devnull@localhost>2011-06-14 23:48:14 +1000
commitac8ca58a43fb6b5f89e7ea7b0d041a7e575696c0 (patch)
treefb3d1e30f3d90328a0ac67f2de425149b7d52366
parentf87ff21b8999735b42cd09b4161bf3cc41f628cc (diff)
downloadscintilla-mirror-ac8ca58a43fb6b5f89e7ea7b0d041a7e575696c0.tar.gz
Ensure SurfaceImpl fully initialised. Fixes bad line height in 64-bit mode.
-rw-r--r--cocoa/PlatCocoa.mm12
1 files changed, 11 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 1f8a54a4c..9397e9fbd 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -181,9 +181,19 @@ void Font::Release()
SurfaceImpl::SurfaceImpl()
{
- bitmapData = NULL; // Release will try and delete bitmapData if != NULL
+ unicodeMode = true;
+ x = 0;
+ y = 0;
gc = NULL;
+
textLayout = new QuartzTextLayout(NULL);
+ codePage = 0;
+ verticalDeviceResolution = 0;
+
+ bitmapData = NULL; // Release will try and delete bitmapData if != NULL
+ bitmapWidth = 0;
+ bitmapHeight = 0;
+
Release();
}