From ac8ca58a43fb6b5f89e7ea7b0d041a7e575696c0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 14 Jun 2011 23:48:14 +1000 Subject: Ensure SurfaceImpl fully initialised. Fixes bad line height in 64-bit mode. --- cocoa/PlatCocoa.mm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'cocoa') 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(); } -- cgit v1.2.3