434 |
if not points: |
if not points: |
435 |
return |
return |
436 |
|
|
437 |
radius = self.resolution * 5 |
radius = int(round(self.resolution * 5)) |
438 |
self.dc.SetBrush(brush) |
self.dc.SetBrush(brush) |
439 |
self.dc.SetPen(pen) |
self.dc.SetPen(pen) |
440 |
for part in points: |
for part in points: |
531 |
text = label.text |
text = label.text |
532 |
if forward: |
if forward: |
533 |
x, y = forward(x, y) |
x, y = forward(x, y) |
534 |
x = x * scale + offx |
x = int(round(x * scale + offx)) |
535 |
y = -y * scale + offy |
y = int(round(-y * scale + offy)) |
536 |
width, height = self.dc.GetTextExtent(text) |
width, height = self.dc.GetTextExtent(text) |
537 |
if label.halign == ALIGN_LEFT: |
if label.halign == ALIGN_LEFT: |
538 |
# nothing to be done |
# nothing to be done |