Re: [hatari-devel] Screen capturing for Previous |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Screen capturing for Previous
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Wed, 19 Dec 2018 19:44:23 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1545245064; bh=tvX6V1bidc8M+LubBo+zc3uJxaLfH2GFc2QcXncEojI=; h=Date:From:To:Subject:From; b=R0f1MyvF1BkYb5gZuL4boContDyypP2xBOy72yEiwj6Ss6ldLT6dPDKEhDvrrCL4J CmxoiuHTPiGhSm1HyykpqtHJuxl0w0rKpAYgPMOnje8F3CPOicmuwX1nbTb4aEszOS DH70RP4S/LJcZPqazAmTK6XPqUi97pbcO5s/p8K9BQ9CzWcWDWsmpMJ7FgpBOKMjqA P62lFlDC4lyjm7Mx9j0Dc8oCUoKywb25mwJrO6oxCxrzpNXz0Qs/yxFBJi9pQJJ+5V k+SJ6hXa8Re5xUpV8yi8osLTBMDibSr2AqnxYE7oU+57FRnrw9H6OrgkILZ8Ti9fK/ bQhq9MwY4TTwA==
Am Sun, 16 Dec 2018 13:22:43 +0100
schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
> Hello all,
>
> I'm trying to add Hatari's screen capturing features to Previous, but
> I'm having some problems with it.
>
> I'm calling ScreenSnapShot_SaveScreen() but it seems not to produce a
> screen capture. All I get is a copy of the status bar. Does anyone
> know what I'm doing wrong?
>
> Screen emulation is here:
> https://sourceforge.net/p/previous/code/HEAD/tree/trunk/src/fast_screen.c
>
> Any hints are welcome!
Well, looks like Previous is using two textures to render the screen,
uiTexture and fbTexture in the repainter() function. uiTexture is
updated from sdlscrn, and fbTexture is updated from the screen
contents.
Hatari only uses one texture which is updated from sdlscrn, and the
snapshot code uses that surface for this, of course. But since you've
got two sources in Previous, you've got to change this - instead of
using sdlscrn, you've got to use the vram of the emulated system
instead.
Thomas