@@ -203,7 +203,9 @@ def draw_lines(self, gc, x, y, transform=None):
203
203
ctx .set_matrix (matrix_old )
204
204
205
205
206
- def draw_markers (self , gc , path , x , y , transform ):
206
+ #def draw_markers(self, gc, path, x, y, transform):
207
+ def _draw_markers (self , gc , path , rgbFace , x , y , transform ):
208
+ # TODO 'path' has changed - needs updating
207
209
if DEBUG : print 'backend_cairo.RendererCairo.%s()' % _fn_name ()
208
210
209
211
ctx = gc .ctx
@@ -234,20 +236,23 @@ def generate_path (path):
234
236
ctx .line_to (p [1 ], - p [2 ])
235
237
elif code == ENDPOLY :
236
238
ctx .close_path ()
237
- if p [1 ]: # fill
238
- #rgba = p[2:]
239
- return p [2 :5 ] # don't really want to read the same fill_rgb every time we generate_path()
240
- return None
239
+ # if p[1]: # fill
240
+ # #rgba = p[2:]
241
+ # return p[2:5] # don't really want to read the same fill_rgb every time we generate_path()
242
+ # return None
241
243
242
244
for x ,y in izip (x ,y ):
243
245
ctx .save ()
244
246
ctx .new_path ()
245
247
ctx .translate (x , self .height - y )
246
248
247
- fill_rgb = generate_path (path )
248
- if fill_rgb :
249
+ #fill_rgb = generate_path (path)
250
+ generate_path (path )
251
+ #if fill_rgb:
252
+ if rgbFace :
249
253
ctx .save ()
250
- ctx .set_rgb_color (* fill_rgb )
254
+ #ctx.set_rgb_color (*fill_rgb)
255
+ ctx .set_rgb_color (rgbFace )
251
256
# later - set alpha also?
252
257
ctx .fill ()
253
258
ctx .restore () # undo colour change and restore path
0 commit comments