mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-09 20:51:51 +09:00
wordprocessor wip2
This commit is contained in:
@@ -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});
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user