• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

OmegaT の背景に画像を表示します。


Commit MetaInfo

Revision42 (tree)
Time2014-05-21 22:16:48
Authoryu-tang

Log Message

タイリング画像の無駄な作成を最適化

Change Summary

Incremental Difference

--- trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/MoeLayeredPane.java (revision 41)
+++ trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/MoeLayeredPane.java (revision 42)
@@ -81,8 +81,8 @@
8181 // に変更する。
8282 int width = getWidth();
8383 int height = getHeight();
84- if (width > image.getWidth() || height > image.getHeight()) {
85- this.tiledImage = createTiledImage(image, width, height);
84+ if (width > tiledImage.getWidth() || height > tiledImage.getHeight()) {
85+ tiledImage = createTiledImage(image, width, height);
8686 }
8787 g2.drawImage(tiledImage, 0, paintMarginTop, this);
8888