aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
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();
}