From b0a1282b0a4ec0f79b15f543f16d149e1bd5ae58 Mon Sep 17 00:00:00 2001 From: Ivan Izaguirre Date: Sun, 4 Oct 2020 16:09:59 +0200 Subject: [PATCH] Fix Mix mode --- screen.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/screen.go b/screen.go index 159ec0a..0d78006 100644 --- a/screen.go +++ b/screen.go @@ -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++ {