From 8a08fb663f3034e8368c407a6780336080ea77dd Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 9 Oct 2012 15:50:00 +0200 Subject: Not scaling config image --- .../src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'trunk/pdf-over-gui/src/main') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java index 4992ef1a..576c1216 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java @@ -346,8 +346,7 @@ public abstract class MainBarButton extends Canvas { e.gc.setForeground(current); } else { int imgx = (width - height) / 2; - Image tmp = new Image(getDisplay(), this.image.getImageData() - .scaledTo(height, height)); + Image tmp = new Image(getDisplay(), this.image.getImageData()); e.gc.drawImage(tmp, imgx, 0); } -- cgit v1.2.3