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
commitb57c5c13df4434754f3bf3d39c20e1926578a6da (patch)
treee3d716764d3dd87811f1c2ccf2145558050ec884 /cocoa
parent5f5ca4123c3a3ae3443e8f45c2b3d4df7309c708 (diff)
downloadscintilla-mirror-b57c5c13df4434754f3bf3d39c20e1926578a6da.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;
}
//--------------------------------------------------------------------------------------------------