aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp
index 71bdae792..35e4aee78 100644
--- a/qt/ScintillaEditBase/PlatQt.cpp
+++ b/qt/ScintillaEditBase/PlatQt.cpp
@@ -182,7 +182,7 @@ void SurfaceImpl::Init(SurfaceID sid, WindowID /*wid*/)
void SurfaceImpl::InitPixMap(int width,
int height,
- Surface * /*surface*/,
+ Surface *surface,
WindowID /*wid*/)
{
Release();
@@ -190,6 +190,9 @@ void SurfaceImpl::InitPixMap(int width,
if (height < 1) height = 1;
deviceOwned = true;
device = new QPixmap(width, height);
+ SurfaceImpl *psurfOther = static_cast<SurfaceImpl *>(surface);
+ SetUnicodeMode(psurfOther->unicodeMode);
+ SetDBCSMode(psurfOther->codePage);
}
void SurfaceImpl::Release()