mirror of
https://github.com/ivanizag/izapple2.git
synced 2024-06-10 21:29:38 +00:00
Placing screen rendering on pause as well.
This commit is contained in:
parent
da7bb3ebf7
commit
01099a8ce3
|
@ -76,6 +76,7 @@ func SDLRun(a *apple2.Apple2) {
|
||||||
paused = a.IsPaused()
|
paused = a.IsPaused()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !a.IsPaused() {
|
||||||
img := apple2.Snapshot(a)
|
img := apple2.Snapshot(a)
|
||||||
if img != nil {
|
if img != nil {
|
||||||
surface, err := sdl.CreateRGBSurfaceFrom(unsafe.Pointer(&img.Pix[0]),
|
surface, err := sdl.CreateRGBSurfaceFrom(unsafe.Pointer(&img.Pix[0]),
|
||||||
|
@ -102,6 +103,7 @@ func SDLRun(a *apple2.Apple2) {
|
||||||
surface.Free()
|
surface.Free()
|
||||||
texture.Destroy()
|
texture.Destroy()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sdl.Delay(1000 / 30)
|
sdl.Delay(1000 / 30)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user