aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-03-13 06:33:34 +0000
committernyamatongwe <unknown>2000-03-13 06:33:34 +0000
commitaffaa0735a05a789d95baed82c903d9b571a2c00 (patch)
tree971c5b8e64f8a2130a678bffe82ff526915967e0 /win32/PlatWin.cxx
parent99c218655d2fbc87781b9695b22d790c5e6251eb (diff)
downloadscintilla-mirror-affaa0735a05a789d95baed82c903d9b571a2c00.tar.gz
Fixed printing problems including putting line numbers in correct position
and flushing state when switching surfaces in case surfaces are encapsulating a shared underlying graphics context.
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 9fde8a272..d3997e96b 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -419,6 +419,12 @@ void Surface::SetClip(PRectangle rc) {
::IntersectClipRect(hdc, rc.left, rc.top, rc.right, rc.bottom);
}
+void Surface::FlushCachedState() {
+ pen = 0;
+ brush = 0;
+ font = 0;
+}
+
Window::~Window() {
}