mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-10 05:01:50 +09:00
i18n driver for tvdos
This commit is contained in:
@@ -96,9 +96,7 @@ class GraphicsJSR223Delegate(val vm: VM) {
|
||||
}
|
||||
|
||||
fun setCursorYX(cy: Int, cx: Int) {
|
||||
getFirstGPU()?.let {
|
||||
it.setCursorPos(cx - 1, cy - 1)
|
||||
}
|
||||
getFirstGPU()?.setCursorPos(cx - 1, cy - 1)
|
||||
}
|
||||
|
||||
|
||||
@@ -132,9 +130,7 @@ class GraphicsJSR223Delegate(val vm: VM) {
|
||||
}
|
||||
|
||||
fun putSymbolAt(cy: Int, cx: Int, c: Int) {
|
||||
getFirstGPU()?.let {
|
||||
it.putChar(cx - 1, cy - 1, c.toByte())
|
||||
}
|
||||
getFirstGPU()?.putChar(cx - 1, cy - 1, c.toByte())
|
||||
}
|
||||
|
||||
/*private fun GraphicsAdapter._loadbulk(fromAddr: Int, toAddr: Int, length: Int) {
|
||||
@@ -153,6 +149,10 @@ class GraphicsJSR223Delegate(val vm: VM) {
|
||||
)
|
||||
}*/
|
||||
|
||||
fun setHalfrowMode(set: Boolean) {
|
||||
getFirstGPU()?.halfrowMode = set
|
||||
}
|
||||
|
||||
private fun GraphicsAdapter._loadSprite(spriteNum: Int, ptr: Int) {
|
||||
UnsafeHelper.memcpy(
|
||||
vm.usermem.ptr + ptr,
|
||||
|
||||
@@ -115,7 +115,7 @@ open class GraphicsAdapter(private val assetsRoot: String, val vm: VM, val confi
|
||||
private val memTextOffset = 2L + 2560 + 2560
|
||||
private val TEXT_AREA_SIZE = TEXT_COLS * TEXT_ROWS
|
||||
|
||||
override var halfrowMode = true//false
|
||||
override var halfrowMode = false
|
||||
|
||||
override var rawCursorPos: Int
|
||||
get() = textArea.getShort(memTextCursorPosOffset).toInt()
|
||||
|
||||
Reference in New Issue
Block a user