mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-05-28 12:41:27 +00:00
Apple IIe char gen ROM management
This commit is contained in:
parent
eeebf1bb0f
commit
3f7e3b3013
|
@ -57,12 +57,28 @@ func snapshotTextMode(a *Apple2, page int, mixMode bool, light color.Color) *ima
|
||||||
rowInChar := y % charHeight
|
rowInChar := y % charHeight
|
||||||
colInChar := x % charWidth
|
colInChar := x % charWidth
|
||||||
char := getTextChar(a, col, line, page)
|
char := getTextChar(a, col, line, page)
|
||||||
topBits := char >> 6
|
var pixel bool
|
||||||
isInverse := topBits == 0
|
if a.isApple2e {
|
||||||
isFlash := topBits == 1
|
isAltText := a.io.isSoftSwitchActive(ioFlagAltChar)
|
||||||
|
vid6 := (char & 0x40) != 0
|
||||||
|
vid7 := (char & 0x80) != 0
|
||||||
|
|
||||||
pixel := a.cg.getPixel(char, rowInChar, colInChar)
|
char := char & 0x3f
|
||||||
pixel = pixel != (isInverse || (isFlash && isFlashedFrame))
|
if vid6 && (vid7 || isAltText) {
|
||||||
|
char += 0x40
|
||||||
|
}
|
||||||
|
if vid7 || (vid6 && isFlashedFrame && !isAltText) {
|
||||||
|
char += 0x80
|
||||||
|
}
|
||||||
|
pixel = !a.cg.getPixel(char, rowInChar, colInChar)
|
||||||
|
} else {
|
||||||
|
pixel = a.cg.getPixel(char, rowInChar, colInChar)
|
||||||
|
topBits := char >> 6
|
||||||
|
isInverse := topBits == 0
|
||||||
|
isFlash := topBits == 1
|
||||||
|
|
||||||
|
pixel = pixel != (isInverse || (isFlash && isFlashedFrame))
|
||||||
|
}
|
||||||
var colour color.Color
|
var colour color.Color
|
||||||
if pixel {
|
if pixel {
|
||||||
colour = light
|
colour = light
|
||||||
|
|
Loading…
Reference in New Issue
Block a user