v0.7.0: fixed an alchemy scene crash and standardized window size vars
This commit is contained in:
parent
3d9ca96f68
commit
60110f186e
|
@ -256,14 +256,15 @@ public class AlchemyScene extends PixelScene {
|
|||
|
||||
{
|
||||
WndJournal.AlchemyTab t = new WndJournal.AlchemyTab();
|
||||
int w, h;
|
||||
if (SPDSettings.landscape()) {
|
||||
resize(200, 130);
|
||||
t.setRect(0, 0, 200, 130);
|
||||
w = WndJournal.WIDTH_L; h = WndJournal.HEIGHT_L;
|
||||
} else {
|
||||
resize(126, 180);
|
||||
t.setRect(0, 0, 126, 180);
|
||||
w = WndJournal.WIDTH_P; h = WndJournal.HEIGHT_P;
|
||||
}
|
||||
resize(w, h);
|
||||
add(t);
|
||||
t.setRect(0, 0, w, h);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -53,11 +53,11 @@ import java.util.HashMap;
|
|||
|
||||
public class WndJournal extends WndTabbed {
|
||||
|
||||
private static final int WIDTH_P = 126;
|
||||
private static final int HEIGHT_P = 180;
|
||||
public static final int WIDTH_P = 126;
|
||||
public static final int HEIGHT_P = 180;
|
||||
|
||||
private static final int WIDTH_L = 200;
|
||||
private static final int HEIGHT_L = 130;
|
||||
public static final int WIDTH_L = 200;
|
||||
public static final int HEIGHT_L = 130;
|
||||
|
||||
private static final int ITEM_HEIGHT = 18;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user