mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-06 13:38:30 +09:00
some graphics changes
This commit is contained in:
@@ -158,9 +158,6 @@ audio.purgeQueue(AUDIO_DEVICE)
|
||||
audio.setPcmMode(AUDIO_DEVICE)
|
||||
audio.setMasterVolume(AUDIO_DEVICE, 255)
|
||||
|
||||
// set colour zero as half-opaque black
|
||||
graphics.setPalette(0, 0, 0, 0, 7)
|
||||
|
||||
// Parse SSF-TC subtitle packet and add to event buffer (0x31)
|
||||
function parseSubtitlePacketTC(packetSize) {
|
||||
// Read subtitle index (24-bit, little-endian)
|
||||
@@ -2463,6 +2460,6 @@ finally {
|
||||
audio.purgeQueue(AUDIO_DEVICE)
|
||||
}
|
||||
|
||||
graphics.setPalette(0, 0, 0, 0, 0)
|
||||
graphics.resetPalette()
|
||||
con.move(cy, cx) // restore cursor
|
||||
return errorlevel
|
||||
@@ -566,7 +566,7 @@ const colHighlight = 41
|
||||
const colColumnSep = 6
|
||||
const colRowNum = 250
|
||||
const colRowNumEmph1 = 225
|
||||
const colRowNumEmph2 = 217
|
||||
const colRowNumEmph2 = 155
|
||||
const colStatus = 253
|
||||
const colVoiceHdr = 230
|
||||
const colSep = 252
|
||||
@@ -697,7 +697,7 @@ function drawStatusBar() {
|
||||
con.color_pair(235, 255); print(`${sSpd}`)
|
||||
|
||||
// app title
|
||||
gl.drawTexImageOver(logoTexture, (SCRPW-logoTexture.width) >>> 1, 8)
|
||||
gl.drawTexImageOver(logoTexture, (SCRPW-logoTexture.width) >>> 1, 7)
|
||||
|
||||
}
|
||||
|
||||
@@ -1186,7 +1186,7 @@ if (fullPathObj === undefined) {
|
||||
|
||||
const logofile = files.open("A:/tvdos/bin/tauthdr.r8")
|
||||
const logoBytes = logofile.bread(); logofile.close()
|
||||
const logoTexture = new gl.Texture(88, 12, logoBytes)
|
||||
const logoTexture = new gl.Texture(90, 14, logoBytes)
|
||||
const buttonfile = files.open("A:/tvdos/bin/tautbtn.r8")
|
||||
const buttonBytes = buttonfile.bread(); buttonfile.close()
|
||||
const buttonTexture = new gl.Texture(2, 28, buttonBytes)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 730 B After Width: | Height: | Size: 385 B |
Binary file not shown.
Reference in New Issue
Block a user