aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-03-09 04:08:13 +0000
committernyamatongwe <unknown>2003-03-09 04:08:13 +0000
commit0e5e6b976c968dce6e63eb68ecaabab35398ed24 (patch)
treeb11df1d33c65b821e0eabb3c84a5503cefae7534 /win32/PlatWin.cxx
parentfc4ce601c44f0bc0ac7529d76597e482be9b97e4 (diff)
downloadscintilla-mirror-0e5e6b976c968dce6e63eb68ecaabab35398ed24.tar.gz
Added Pango text display support to GTK+ platform.
Added WindowID parameter to all Surface initialisation methods as Pango requires a window to determine the context used for text functions. AutoSurface changed because of above to take an Editor* argument so it can then discover the code page and window.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 80a2e8557..23c7862ed 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -292,9 +292,9 @@ public:
SurfaceImpl();
virtual ~SurfaceImpl();
- void Init();
- void Init(SurfaceID sid);
- void InitPixMap(int width, int height, Surface *surface_);
+ void Init(WindowID wid);
+ void Init(SurfaceID sid, WindowID wid);
+ void InitPixMap(int width, int height, Surface *surface_, WindowID wid);
void Release();
bool Initialised();
@@ -390,20 +390,20 @@ bool SurfaceImpl::Initialised() {
return hdc != 0;
}
-void SurfaceImpl::Init() {
+void SurfaceImpl::Init(WindowID) {
Release();
hdc = ::CreateCompatibleDC(NULL);
hdcOwned = true;
::SetTextAlign(reinterpret_cast<HDC>(hdc), TA_BASELINE);
}
-void SurfaceImpl::Init(SurfaceID sid) {
+void SurfaceImpl::Init(SurfaceID sid, WindowID) {
Release();
hdc = reinterpret_cast<HDC>(sid);
::SetTextAlign(reinterpret_cast<HDC>(hdc), TA_BASELINE);
}
-void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_) {
+void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_, WindowID) {
Release();
hdc = ::CreateCompatibleDC(static_cast<SurfaceImpl *>(surface_)->hdc);
hdcOwned = true;