diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-10-09 15:50:00 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-10-09 15:50:00 +0200 |
commit | 8a08fb663f3034e8368c407a6780336080ea77dd (patch) | |
tree | 19ceaa825c92625f469df9d15d2f3ef33bf98468 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover | |
parent | c6b237e388377bdb47ae85b1113ec4ae0b7bb0af (diff) | |
download | pdf-over-8a08fb663f3034e8368c407a6780336080ea77dd.tar.gz pdf-over-8a08fb663f3034e8368c407a6780336080ea77dd.tar.bz2 pdf-over-8a08fb663f3034e8368c407a6780336080ea77dd.zip |
Not scaling config image
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |