mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
PR 38 from Metallicow. Pen and Brush style updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -390,7 +390,7 @@ class dcGraphicsPath(object):
|
||||
if parent:
|
||||
self.gstate = parent.gstate
|
||||
self.fillcolour = parent._context.GetBrush().GetColour()
|
||||
self.isfilled = parent._context.GetBrush().GetStyle() != wx.TRANSPARENT
|
||||
self.isfilled = parent._context.GetBrush().GetStyle() <> wx.BRUSHSTYLE_TRANSPARENT
|
||||
|
||||
def AddCurveToPoint(self, cx1, cy1, cx2, cy2, x, y):
|
||||
"""
|
||||
|
||||
@@ -741,9 +741,9 @@ class pdfViewer(wx.ScrolledWindow):
|
||||
|
||||
if stroke:
|
||||
if g.lineDashArray:
|
||||
style = wx.USER_DASH
|
||||
style = wx.PENSTYLE_USER_DASH
|
||||
else:
|
||||
style = wx.SOLID
|
||||
style = wx.PENSTYLE_SOLID
|
||||
cpen = wx.Pen(g.strokeRGB, g.lineWidth, style)
|
||||
cpen.SetCap(g.lineCapStyle)
|
||||
cpen.SetJoin(g.lineJoinStyle)
|
||||
|
||||
Reference in New Issue
Block a user