Fix Mix mode

This commit is contained in:
Ivan Izaguirre 2020-10-04 16:09:59 +02:00
parent acf47f3fc0
commit b0a1282b0a
1 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,9 @@ func (a *Apple2) Snapshot() *image.RGBA {
func mixSnapshots(top, bottom *image.RGBA) *image.RGBA {
topWidth := top.Bounds().Dx()
bottomWidth := bottom.Bounds().Dx()
factor := topWidth / bottomWidth
factor := (topWidth - 4) / (bottomWidth - 4)
fmt.Printf("%v, %v, %v\n", topWidth, bottomWidth, factor)
// Copy bottom's bottom on top's bottom, applying the factor
for y := hiResHeightMixed; y < hiResHeight; y++ {