mirror of
https://github.com/markpmlim/GraphicConverterIIGS.git
synced 2024-11-22 17:31:26 +00:00
Corrected file type
This commit is contained in:
parent
764d952166
commit
c194d00913
@ -73,7 +73,7 @@ public class Converter {
|
|||||||
for row in 0..<height {
|
for row in 0..<height {
|
||||||
let whichColorTable = Int(scbs[row] & 0x0f)
|
let whichColorTable = Int(scbs[row] & 0x0f)
|
||||||
let baseIndex = row * width * bytesPerPixel // macOS bitmap
|
let baseIndex = row * width * bytesPerPixel // macOS bitmap
|
||||||
// Each Apple IIGS scanline is 160 bytes for the $C0/$0000 graphic format.
|
// Each Apple IIGS scanline is 160 bytes for the $C1/$0000 graphic format.
|
||||||
for col in 0..<160 {
|
for col in 0..<160 {
|
||||||
let index = row * 160 + col // IIgs bitmap
|
let index = row * 160 + col // IIgs bitmap
|
||||||
let pixels = bitMap[index] // 2 IIGS "pixels"
|
let pixels = bitMap[index] // 2 IIGS "pixels"
|
||||||
|
Loading…
Reference in New Issue
Block a user