aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-03-13 06:33:34 +0000
committernyamatongwe <devnull@localhost>2000-03-13 06:33:34 +0000
commitcec60604aff63953dc927d995d6804acd645cfdc (patch)
tree971c5b8e64f8a2130a678bffe82ff526915967e0 /win32/PlatWin.cxx
parentecd739446638e66fd00a4b7a5e7a663f5fdce167 (diff)
downloadscintilla-mirror-cec60604aff63953dc927d995d6804acd645cfdc.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() {
}