From 4caa54e400ac5b80b966d7a8f08b801223b4a221 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 5 Jun 2011 10:05:37 +1000 Subject: Cache surface resolution as it is slow and is called for every font creation. --- cocoa/PlatCocoa.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cocoa/PlatCocoa.h') diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h index 3e0aa09d8..0653bc728 100644 --- a/cocoa/PlatCocoa.h +++ b/cocoa/PlatCocoa.h @@ -49,6 +49,8 @@ private: /** The text layout instance */ QuartzTextLayout* textLayout; int codePage; + int verticalDeviceResolution; + /** If the surface is a bitmap context, contains a reference to the bitmap data. */ uint8_t* bitmapData; /** If the surface is a bitmap context, stores the dimensions of the bitmap. */ -- cgit v1.2.3