Procházet zdrojové kódy

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 před 14 roky
rodič
revize
8df29a257a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/com/dmdirc/addons/ui_swing/UIUtilities.java

+ 1
- 1
src/com/dmdirc/addons/ui_swing/UIUtilities.java Zobrazit soubor

@@ -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,

Načítá se…
Zrušit
Uložit