From b9a72f1e42a8b75bbd30ccb6b58c06ea91552691 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 12 Jan 2003 04:02:43 +0000 Subject: 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+. --- win32/PlatWin.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win32/PlatWin.cxx') 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); -- cgit v1.2.3