Re: [hatari-devel] resizable windows

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


Hi,

On 06/17/2017 09:59 PM, Cocoa Pod wrote:
Le 17/06/2017 à 17:24, Troed Sångberg a écrit :
And as Troed said, resizable window is "normal", it's a new feature when using
SDL2 (along with much faster rendering under OSX :) )
>
On OSX we can resize windows programmatically or manually and my knowledge of
the emulator and of SDL2 are minimum (hélas). But I do not see the interest to
authorize the manual change of dimensions (with the mouse) unless you assert me
the opposite. The problem is that, if accidentally you modify the size of the
window it seems to me that there is no way to return simply to the good size. As
example  see below Hatari windows images modified manually ! interest ?

I've also found that very annoying.  I've never needed to resize Hatari
window, but I accidentally hit the resize button now and then.  So, I
added option to disable window resizing:
https://hg.tuxfamily.org/mercurialroot/hatari/hatari/rev/44e441bb3882


Btw. The current resizing support could be a bit more useful if it
would maintain aspect ratio.  Best way to do that is probably
letting SDL do it:
	https://wiki.libsdl.org/SDL_RenderSetLogicalSize

But one then loses full control of the window resolution.

However, maintaining the aspect ratio manually seems quite error prone:
https://stackoverflow.com/questions/28587643/sdl2-how-to-keep-aspect-ratio-when-resizing-the-window


	- Eero



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