From fddc9e2f6dcbdd8fbb204badf6d43c0e9c9f56f6 Mon Sep 17 00:00:00 2001 From: Ivan Izaguirre Date: Sun, 4 Oct 2020 16:59:00 +0200 Subject: [PATCH] Remove trace --- izapple2sdl/main.go | 4 +--- screen.go | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/izapple2sdl/main.go b/izapple2sdl/main.go index 03a97e7..c11e584 100644 --- a/izapple2sdl/main.go +++ b/izapple2sdl/main.go @@ -110,10 +110,8 @@ func SDLRun(a *izapple2.Apple2) { } renderer.Clear() - w, h := window.GetSize() - renderer.Copy(texture, nil, &sdl.Rect{X: 0, Y: 0, W: w, H: h}) + renderer.Copy(texture, nil, nil) renderer.Present() - surface.Free() texture.Destroy() } diff --git a/screen.go b/screen.go index 0d78006..3820e68 100644 --- a/screen.go +++ b/screen.go @@ -198,8 +198,6 @@ func mixSnapshots(top, bottom *image.RGBA) *image.RGBA { bottomWidth := bottom.Bounds().Dx() 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++ { for x := 0; x < topWidth; x++ {