Skip to content

Commit

Permalink
Merge pull request #557 from eclipse/bugfix/Issue_556_Transform_not_d…
Browse files Browse the repository at this point in the history
…isposed_on_the_AnalogClockPainter

Bug #556 - Transform not disposed on the AnalogClockPainter
  • Loading branch information
lcaron authored Jan 25, 2024
2 parents 6c538c0 + e11257c commit 3b70c39
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ public final void paintContent(VControl control, Event e) {
angleH = cal.get(Calendar.HOUR) * 30 + cal.get(Calendar.MINUTE) / 2;
}

Transform o = new Transform(e.display);
e.gc.getTransform(o);

int lwidth = e.gc.getLineWidth();
e.gc.setLineWidth(1);

Expand Down Expand Up @@ -110,7 +107,6 @@ public final void paintContent(VControl control, Event e) {
}

control.setAlpha(e.gc);
e.gc.setTransform(o);
e.gc.setBackground(e.display.getSystemColor(SWT.COLOR_GRAY));
e.gc.fillOval(picker.dialCenter.x + 1, picker.dialCenter.y + 1, 6,
6);
Expand Down Expand Up @@ -164,8 +160,6 @@ public final void paintContent(VControl control, Event e) {
e.gc.setLineWidth(1);
}

e.gc.setTransform(o);

control.setAlpha(e.gc);

e.gc.setBackground(e.display.getSystemColor(SWT.COLOR_DARK_GRAY));
Expand Down

0 comments on commit 3b70c39

Please sign in to comment.