Browse Source

Fix backgrounds being scaled stupidly

Change-Id: I7342ae2f0efcd1049b5cb3cd9d719f6a7e8f6745
Reviewed-on: http://gerrit.dmdirc.com/662
Automatic-Compile: Gregory Holmes <greg@dmdirc.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.3
Chris Smith 14 years ago
parent
commit
8df29a257a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/addons/ui_swing/UIUtilities.java

+ 1
- 1
src/com/dmdirc/addons/ui_swing/UIUtilities.java View File

@@ -401,7 +401,7 @@ public final class UIUtilities {
401 401
         final int x = (bounds.width / 2) - (backgroundImage.getWidth(null) / 2);
402 402
         final int y = (bounds.height / 2) - (backgroundImage.getHeight(null) / 2);
403 403
         g.drawImage(backgroundImage, x, y, backgroundImage.getWidth(null),
404
-                backgroundImage.getWidth(null), null);
404
+                backgroundImage.getHeight(null), null);
405 405
     }
406 406
 
407 407
     private static void paintStretchedAspectRatioBackground(final Graphics2D g,

Loading…
Cancel
Save