소스 검색

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 년 전
부모
커밋
8df29a257a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/com/dmdirc/addons/ui_swing/UIUtilities.java

+ 1
- 1
src/com/dmdirc/addons/ui_swing/UIUtilities.java 파일 보기

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

Loading…
취소
저장