RE: [hatari-devel] ST/STE High Resolution Scaling |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: <hatari-devel@xxxxxxxxxxxxxxxxxxx>
- Subject: RE: [hatari-devel] ST/STE High Resolution Scaling
- From: "Randy Hunsaker" <hunsra@xxxxxxxxxxx>
- Date: Thu, 19 Sep 2013 08:58:26 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1379606307; bh=yRGJKN65djr2se1nT0/AdfeVJlP3dm3ohNNyNArLDWw=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=Z9Cu3CIHn3InRz/bbE0HzlYhiptB/qXGoEuvmKZ1rIDOUIjUv+14PLqONWcQIqIyn rmjKKKOlWv9Hmy1Y/cJD6UuiiAV8s9w+xxFKjn7QIj4CCfZtZZ9SbtYYhzRjnXpAWn Ni0vlnCleXtf1ohWvzvJwcnxRk7pfrXzcb/JKzaD+6GBa9g1Gob3BK1jVoCeWZIp1h nwyfHQ/mxslOMh/MLkgmIwtyU4tNrZD0CiBluZU8nrxFyeRimWYCgAO6LghFZZvYJM dujnZv22svhVOal2hoTb62VqKhGHt9GyCkCVcVbrcekevcwkfBcaoV13ZHDdRt9vbJ GOhjcQVZc0aKA==
- Thread-index: AQHt3VWsDIbzWAK1h1B9zom1IpF8pAG/zW6DAicmZ+4CGBxoywLHIY16A1j2lK0BqkDP/gFruHTomRU+M0A=
Hi,
I agree that OpenGL should be optional. I've made it so in my changes and
have successfully modified the CMake files to look for it and only use it if
found, as well as made the inclusion of the modified code dependent on the
existence of OpenGL when compiling.
My initial test worked quite well in scaling the ST/STE low and medium
resolution screens, with no apparent reduction in video update speed. High
resolution isn't working for some reason. I need to figure out why high
resolution isn't working, refine the code a bit more, and add some options
to the GUI/configuration mechanism so scaling can be enabled/disabled and
stored in configuration files. I can see from the source code that there is
additional/different GUI code for Windows and OS X. Is it sufficient to
make the configuration GUI changes to the SDL code in gui-sdl, or do you
think I'll need to modify anything in gui-osx and/or gui-win as well?
Thanks,
Randy
-----Original Message-----
From: Nicolas Pomarède [mailto:npomarede@xxxxxxxxxxxx]
Sent: Thursday, September 19, 2013 1:33 AM
To: hatari-devel@xxxxxxxxxxxxxxxxxxx
Cc: Randy Hunsaker
Subject: Re: [hatari-devel] ST/STE High Resolution Scaling
Le 19/09/2013 05:47, Randy Hunsaker a écrit :
> Hi,
>
> I think I have a model for scaling that will work. It involves using
> SDLs OpenGL support, and converting the main SDL surface to a texture
> and stretching it over a rectangle that represents the ST/STE screen.
> I've made some preliminary code changes, and I need to link Hatari
> with the OpenGL library to test them. I'm not very familiar with
> CMake, so I'm not sure how to modify the CMake files to enabling
> linking with the library. Can you suggest how to do this?
>
> Thanks,
> Randy
Hello
regarding opengl, I'm not sure all platforms where Hatari can currently
build have opengl available ; at least, I think it should not be mandatory
to have opengl to build Hatari, so that Hatari can still build on
opengl-less platform.
As for adding some flags to cmake, you can try to duplicate the
target-link_libraries used for portaudio for example in src/CMakeLists.txt
and adapt it to opengl.
Nicolas
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3408 / Virus Database: 3222/6678 - Release Date: 09/18/13