From cec60604aff63953dc927d995d6804acd645cfdc Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 13 Mar 2000 06:33:34 +0000 Subject: 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. --- win32/PlatWin.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win32') 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() { } -- cgit v1.2.3