Minor UI tweak affecting initial zoom level.

This commit is contained in:
Brendan Robert 2015-09-05 12:28:01 -05:00
parent c5167901b8
commit 2a984aa142
2 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,6 @@ import java.io.FileWriter;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Level;
import java.util.logging.Logger;

View File

@ -311,7 +311,6 @@ public class MetacheatUI {
memoryViewPane.boundsInParentProperty().addListener((prop, oldVal, newVal) -> redrawMemoryView());
drawScale = isRetina ? 0.5 : 1.0;
memoryViewCanvas.widthProperty().bind(memoryViewPane.widthProperty().multiply(drawScale));
setZoom(1/drawScale);
watchesPane.setHgap(5);
watchesPane.setVgap(5);
@ -504,7 +503,7 @@ public class MetacheatUI {
redrawNodes.add(newCell);
});
setZoom(1/drawScale);
setZoom((1/drawScale) - 0.1);
if (resume) {
Emulator.computer.resume();