Fix ProDOS bitmap parsing
This commit is contained in:
parent
e07992022b
commit
ba08d57df5
|
@ -246,7 +246,7 @@
|
||||||
(fn bit-in-bytes [bytes ibit]
|
(fn bit-in-bytes [bytes ibit]
|
||||||
(local ibyte (math.floor (/ ibit 8)))
|
(local ibyte (math.floor (/ ibit 8)))
|
||||||
(local byte (string.byte (bytes:sub (+ ibyte 1) (+ ibyte 1))))
|
(local byte (string.byte (bytes:sub (+ ibyte 1) (+ ibyte 1))))
|
||||||
(local mask (bit.lshift 1 (% ibit 8)))
|
(local mask (bit.rshift 0x80 (% ibit 8)))
|
||||||
(values byte mask ibyte))
|
(values byte mask ibyte))
|
||||||
|
|
||||||
(fn Prodos.parse-bitmap [self]
|
(fn Prodos.parse-bitmap [self]
|
||||||
|
|
Loading…
Reference in a new issue