From d22e316d99aed7657e9e6ba65cec2882cad219d2 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:36:19 +0000 Subject: Not scaling config image git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12660 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../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/java/at/asit/pdfover') 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