diff options
author | nyamatongwe <unknown> | 2011-06-14 23:48:14 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-14 23:48:14 +1000 |
commit | 7dc557731710a37b3451a5404486dcf56c7b326d (patch) | |
tree | c4086402f32739a9745a01de3ae551dd96f4ac11 | |
parent | a9571e88f0f0c095f291d8fa0cc2351b6563e690 (diff) | |
download | scintilla-mirror-7dc557731710a37b3451a5404486dcf56c7b326d.tar.gz |
Ensure SurfaceImpl fully initialised. Fixes bad line height in 64-bit mode.
-rw-r--r-- | cocoa/PlatCocoa.mm | 12 |
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(); } |