declare one variable per line
parent
d49f1a3104
commit
366e1fa0fe
|
@ -97,7 +97,8 @@ public class GraphicsUtilities {
|
|||
final int type = (img.getTransparency() == Transparency.OPAQUE) ?
|
||||
BufferedImage.TYPE_INT_RGB : BufferedImage.TYPE_INT_ARGB;
|
||||
BufferedImage ret = img;
|
||||
int w, h;
|
||||
int w;
|
||||
int h;
|
||||
if (higherQuality && (img.getWidth() > targetWidth && img.getHeight() > targetHeight)) {
|
||||
// Use multi-step technique: start with original size, then
|
||||
// scale down in multiple passes with drawImage()
|
||||
|
|
|
@ -73,7 +73,8 @@ public class MagicGameReport implements Thread.UncaughtExceptionHandler {
|
|||
}
|
||||
|
||||
private static void buildScore(final MagicGame game,final StringBuilder report) {
|
||||
int totalScore=0,count=0;
|
||||
int totalScore=0;
|
||||
int count=0;
|
||||
for (final MagicAction action : game.getActions()) {
|
||||
final int score=action.getScore(game.getScorePlayer());
|
||||
totalScore+=score;
|
||||
|
|
|
@ -72,9 +72,14 @@ public class PreferencesDialog extends JDialog implements ActionListener {
|
|||
final GeneralConfig config=GeneralConfig.getInstance();
|
||||
|
||||
int Y=20;
|
||||
final int X=28, W=70, H=25;
|
||||
final int X2=100, W2=255;
|
||||
final int X3=25, H3=20, W3=350;
|
||||
final int X=28;
|
||||
final int W=70;
|
||||
final int H=25;
|
||||
final int X2=100;
|
||||
final int W2=255;
|
||||
final int X3=25;
|
||||
final int H3=20;
|
||||
final int W3=350;
|
||||
|
||||
final JLabel themeLabel=new JLabel("Theme");
|
||||
themeLabel.setBounds(X,Y,W,H);
|
||||
|
|
Loading…
Reference in New Issue