wordprocessor wip2

This commit is contained in:
minjaesong
2021-06-08 16:13:11 +09:00
parent e1905f2ca5
commit 82992583ad
4 changed files with 112 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ public class AppLoader {
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{BasicBios.INSTANCE, BasicRom.INSTANCE});
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{OEMBios.INSTANCE, BasicRom.INSTANCE});
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{TandemBios.INSTANCE, BasicRom.INSTANCE});
VM vm = new VM(256 << 10, new TheRealWorld(), new VMProgramRom[]{BasicBios.INSTANCE, WPBios.INSTANCE});
VM vm = new VM(128 << 10, new TheRealWorld(), new VMProgramRom[]{BasicBios.INSTANCE, WPBios.INSTANCE});
// uncomment to target the TerranBASIC runner
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{TBASRelBios.INSTANCE});

View File

@@ -578,7 +578,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
}
private var textCursorBlinkTimer = 0f
private val textCursorBlinkInterval = 0.5f
private val textCursorBlinkInterval = 0.25f
private var textCursorIsOn = true
private var glowDecay = config.decay
private var decayColor = Color(1f, 1f, 1f, 1f - glowDecay)
@@ -744,7 +744,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
textCursorBlinkTimer += delta
if (textCursorBlinkTimer > textCursorBlinkInterval) {
textCursorBlinkTimer -= 0.5f
textCursorBlinkTimer -= 0.25f
textCursorIsOn = !textCursorIsOn
}

View File

@@ -28,7 +28,7 @@ open class TexticsAdapter(vm: VM, config: AdapterConfig = AdapterConfig(
companion object {
val crtColor = hashMapOf(
"white" to Color(0xe4eaffff.toInt()),
"amber" to Color(0xffb700ff.toInt()),
"amber" to Color(0xffd600ff.toInt()),
"green" to Color(0x4aff00ff)
)
}