RE: [hatari-devel] ST/STE High Resolution Scaling

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi Nicolas,

That sounds like a better solution.  I'll take a look at doing that.  I
assume the best place to add the 2nd pass would be in Screen_DrawFrame() or
Screen_Blit() in screen.c.  Does that sound reasonable, or should I be
looking elsewhere?

Thanks,
Randy

-----Original Message-----
From: Nicolas Pomarède [mailto:npomarede@xxxxxxxxxxxx] 
Sent: Friday, September 13, 2013 11:36 AM
To: hatari-devel@xxxxxxxxxxxxxxxxxxx
Cc: Randy Hunsaker
Subject: Re: [hatari-devel] ST/STE High Resolution Scaling

On 13/09/2013 20:13, Randy Hunsaker wrote:
> Thanks for the quick reply, Nicolas.  I'll take a look at the source 
> code and see what can be done.  If I feel adventurous, I'll take a 
> stab at doing this for all resolutions with hardware scaling.
>
> -Randy

You can add specific code for monochrome x2, but in the end I think it would
be better to have an optional SDL 2nd pass to take the current SDL bitmap
and apply some zooming effects (such as the ones used in several emulators
to do x2 or x4 with some filters (bilinear and so on))

By working on SDL bitmap, you only have to write a function to transform a
w1Xh1 image to another w2Xh2 image, without having to deal with the ST's
planar conversion. So the zooming function can apply to any ST video mode.

By doing so, the text used in Hatari (F12 menu and other) would of course be
zoomed and maybe it could be better to zoom only the ST part of the bitmap,
not the UI part added by Hatari, but that's could be fine tuned after.

Nicolas
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3408 / Virus Database: 3222/6663 - Release Date: 09/13/13




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/