aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-05-13 13:35:38 +1000
committerNeil <nyamatongwe@gmail.com>2015-05-13 13:35:38 +1000
commit8655885818137bc46fca80e4f662bbfb6975f83f (patch)
tree26feec15fcb4ee9822836655a53d49933648284f /cocoa
parentc5d8d10a379619d4c13932d4c2ce6c6454ff78f3 (diff)
downloadscintilla-mirror-8655885818137bc46fca80e4f662bbfb6975f83f.tar.gz
Bug [#1703]. Fix bug when drawing text margins in buffered mode which would use
default encoding instead of chosen encoding.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/PlatCocoa.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 442f1f3bb..02cae162b 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -223,7 +223,7 @@ void SurfaceImpl::Init(SurfaceID sid, WindowID)
//--------------------------------------------------------------------------------------------------
-void SurfaceImpl::InitPixMap(int width, int height, Surface* /* surface_ */, WindowID /* wid */)
+void SurfaceImpl::InitPixMap(int width, int height, Surface* surface_, WindowID /* wid */)
{
Release();
@@ -269,6 +269,10 @@ void SurfaceImpl::InitPixMap(int width, int height, Surface* /* surface_ */, Win
CGContextSetRGBFillColor( gc, 1.0, 1.0, 1.0, 1.0 );
CGContextFillRect( gc, CGRectMake( 0, 0, width, height ) );
}
+
+ SurfaceImpl *psurfOther = static_cast<SurfaceImpl *>(surface_);
+ unicodeMode = psurfOther->unicodeMode;
+ codePage = psurfOther->codePage;
}
//--------------------------------------------------------------------------------------------------