mirror of
https://github.com/irmen/prog8.git
synced 2024-12-26 14:29:35 +00:00
fix problems with color cycling in iff viewer
This commit is contained in:
parent
e0d2b60d8b
commit
07b00bec61
@ -69,12 +69,15 @@ iff_module {
|
|||||||
if not cycle_ccrt {
|
if not cycle_ccrt {
|
||||||
cycle_crng = true
|
cycle_crng = true
|
||||||
diskio.f_read_exact(buffer, chunk_size_lo)
|
diskio.f_read_exact(buffer, chunk_size_lo)
|
||||||
cycle_rates[num_cycles] = mkword(buffer[2], buffer[3])
|
ubyte flags = buffer[5]
|
||||||
cycle_rate_ticks[num_cycles] = 1
|
if flags & 1 {
|
||||||
cycle_lows[num_cycles] = buffer[6]
|
cycle_rates[num_cycles] = mkword(buffer[2], buffer[3])
|
||||||
cycle_highs[num_cycles] = buffer[7]
|
cycle_rate_ticks[num_cycles] = 1
|
||||||
cycle_reverseflags[num_cycles] = (buffer[5] & 2)!=0
|
cycle_lows[num_cycles] = buffer[6]
|
||||||
num_cycles++
|
cycle_highs[num_cycles] = buffer[7]
|
||||||
|
cycle_reverseflags[num_cycles] = flags & 2 != 0
|
||||||
|
num_cycles++
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
skip_chunk()
|
skip_chunk()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user