🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2907

Bug in PS_DOT linestyle in Win 3.0 w/uSoft VGA driver

#2907
From: Uncle Miltie
Date: Wed, 29 May 1991 16:44
18 lines
1379 bytes
I am writing an application which has a floating tool palette.  This palette
is implemented as a modeless dialog.  My main window display contains some
lines rendered using the PS_DOT linestyle.  With the tool palette covering the
main window, the PS_DOT lines are drawn with smaller dots during WM_PAINT than
they are during other events.  This creates a problem when I try to erase them
later using R2_NOTXORPEN mode.

I think the problem is that the device context returned from GetDC is
different from the one returned from BeginPaint.  The clip region for the
BeginPaint DC is complex whereas the GetDC clip region is rectangular.  Why
does windows draw the PS_DOT linestyle differently in these two cases?  Is
there a workaround?

	-- Uncle Miltie

--

	HANDY WAR STARBUCKS THE BIG GUN!
Technical Details
Message-ID: <UNCLE.91May29094422@milton.milton.u.washington.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!ogicse!milton!milton!uncle

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!ogicse!milton!milton!uncle
From: uncle@milton.milton.u.washington.edu (Uncle Miltie)
Newsgroups: comp.windows.ms.programmer
Subject: Bug in PS_DOT linestyle in Win 3.0 w/uSoft VGA driver
Message-ID: <UNCLE.91May29094422@milton.milton.u.washington.edu>
Date: 29 May 91 16:44:22 GMT
Article-I.D.: milton.UNCLE.91May29094422
Sender: uncle@milton.u.washington.edu (Uncle Miltie)
Distribution: usa
Organization: Sublime Thoughts and Actions Corp.
Lines: 18