func (s SDLSurface) addrXY(x, y uint) uintptr {
	pixels := uintptr(s.surface.Pixels)
	offset := uintptr(y*s.Pitch() + x*s.Bpp())
	return pixels + offset
}
Return the address of pixel at (x,y)
package sdl_output
import (
	"fmt"
	"github.com/scottferg/Go-SDL/sdl"
	"github.com/scottferg/Go-SDL/ttf"
	"github.com/remogatto/gospeccy/src/spectrum"
	"os"
	"time"
	"unsafe"
)
func init() {
	const expectedVersion = "⚛SDL bindings 1.0"
	actualVersion := sdl.GoSdlVersion()
	if actualVersion != expectedVersion {
		fmt.Fprintf(os.Stderr, "Invalid SDL bindings version: expected \"%s\", got \"%s\"\n",
			expectedVersion, actualVersion)
		os.Exit(1)
	}
}
func init() {
	const expectedVersion = "⚛SDL TTF bindings 1.0"
	actualVersion := ttf.GoSdlVersion()
	if actualVersion != expectedVersion {
		fmt.Fprintf(os.Stderr, "Invalid SDL font bindings version: expected \"%s\", got \"%s\"\n",
			expectedVersion, actualVersion)
		os.Exit(1)
	}
}
type SDLSurface struct {
	surface *sdl.Surface
}
func (s SDLSurface) Width() uint {
	return uint(s.surface.W)
}
func (s SDLSurface) Height() uint {
	return uint(s.surface.H)
}
func (s SDLSurface) Bpp() uint {
	return uint(s.surface.Format.BytesPerPixel)
}
func (s SDLSurface) Pitch() uint {
	return uint(s.surface.Pitch)
}