Added next-VBL refresh of screen when mode changes

This commit is contained in:
Brendan Robert 2018-02-01 09:08:54 -06:00
parent 4c6d2999af
commit 53e86e7888
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import jace.apple2e.MOS65C02;
import jace.cheat.Cheats;
import jace.core.Computer;
import jace.core.RAMEvent;
import jace.core.Utility;
import jace.lawless.LawlessVideo.RenderEngine;
import java.util.concurrent.atomic.AtomicInteger;
@ -13,7 +12,6 @@ import java.util.concurrent.atomic.AtomicInteger;
*/
public class LawlessHacks extends Cheats {
Computer computer;
// Location of font routines
int FONT_ROUTINES = 0x0EC00;
int FONT_SPEEDUP_CYCLES = 10000;
@ -26,7 +24,6 @@ public class LawlessHacks extends Cheats {
public LawlessHacks(Computer computer) {
super(computer);
this.computer = computer;
}
@Override

View File

@ -1,5 +1,7 @@
package jace.lawless;
import jace.Emulator;
import jace.LawlessLegends;
import jace.apple2e.RAM128k;
import jace.apple2e.VideoNTSC;
import jace.core.Computer;
@ -63,6 +65,7 @@ public class LawlessVideo extends VideoNTSC {
public static void setEngine(RenderEngine e) {
activeEngine = e;
Emulator.computer.onNextVBL(()->Emulator.computer.getVideo().forceRefresh());
// System.out.println("Detected engine: " + e.name());
}