i18n driver for tvdos

This commit is contained in:
minjaesong
2021-12-28 11:28:45 +09:00
parent 9c9f351197
commit 2ec0f6aa51
11 changed files with 47 additions and 43 deletions

View File

@@ -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,

View File

@@ -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()