Browse Source

Fix tiled backgrounds using height not width

Fixes issue 3712

Change-Id: I9f55ee2230c0083d14b25c9eda4da10109d57a0f
Reviewed-on: http://gerrit.dmdirc.com/801
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3
Chris Smith 14 years ago
parent
commit
30ff1c293c
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

@@ -422,7 +422,7 @@ public final class UIUtilities {
422 422
     private static void paintTiledBackground(final Graphics2D g,
423 423
             final Rectangle bounds, final Image backgroundImage) {
424 424
         final int width = backgroundImage.getWidth(null);
425
-        final int height = backgroundImage.getWidth(null);
425
+        final int height = backgroundImage.getHeight(null);
426 426
 
427 427
         if (width <= 0 || height <= 0) {
428 428
             // ARG!

Loading…
Cancel
Save