aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-01-12 04:02:43 +0000
committernyamatongwe <devnull@localhost>2003-01-12 04:02:43 +0000
commitb9a72f1e42a8b75bbd30ccb6b58c06ea91552691 (patch)
tree0d044674b7e8558b555e1f8c3e0698bd2f2fa8dc /win32/PlatWin.cxx
parentae33ce73c43277fd6fb87571201b4e2ecdc2ea64 (diff)
downloadscintilla-mirror-b9a72f1e42a8b75bbd30ccb6b58c06ea91552691.tar.gz
Additions from Yukihiro Nakai to enable DBCS mode on GTK+.
DBCS mode for Surface so that different font and text drawing code can be invoked on GTK+.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 9519001b4..6e2ff1b1a 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -322,6 +322,7 @@ public:
void FlushCachedState();
void SetUnicodeMode(bool unicodeMode_);
+ void SetDBCSMode(int codePage);
};
SurfaceImpl::SurfaceImpl() :
@@ -692,6 +693,10 @@ void SurfaceImpl::SetUnicodeMode(bool unicodeMode_) {
unicodeMode=unicodeMode_;
}
+void SurfaceImpl::SetDBCSMode(int) {
+ // No action on window as automatically handled by system.
+}
+
Surface *Surface::Allocate() {
return new SurfaceImpl;
}
@@ -1051,6 +1056,7 @@ void ListBoxX::Draw(DRAWITEMSTRUCT *pDrawItem) {
if (surfaceItem) {
surfaceItem->Init(pDrawItem->hDC);
//surf->SetUnicodeMode(unicodeMode);
+ //surf->SetDBCSMode(codePage);
int left = pDrawItem->rcItem.left;
PRectangle rc(left + 1, pDrawItem->rcItem.top,
left + 1 + widthPix, pDrawItem->rcItem.bottom);