Re: [hatari-devel] Feedback SDL2 support |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Feedback SDL2 support
- From: David Savinkoff <dsavnkff@xxxxxxxxx>
- Date: Thu, 22 Oct 2015 06:11:45 -0600 (MDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=telus.net; s=neo; t=1445515905; bh=mjTP6teodKg9DZlp3fxSp320xruZTmglQRfA7hBh2dg=; h=Date:From:To:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=sqJUcyqNXxE5xf94MxPKi8JXcProrkaJZ46dJ91U/A/IjZ3iWLJu5/Vvj25nUjDUY y7RV1tmhST1r2aXWhXRp2yNsqnLKuXozyZDFI+m2gR5uqdMWpmizRjVVWWapecKkPb MZqIxyuyE8W8GQhghkmjS70rNODy7j+zgpzohG5Rc0jDJ4BKhy6vNWUVO6N3x746I0 NxufDnkWt5MFJAqDXUuDSiBFpIzM4RWDGGkDUMKKAV9Om4bHwYrtemqkgjJVd3lHNv p6K8T0BMgmVUuug9a0+3PpyVbl0Yx/Bqn5lrFyUeWn/eA+GD3OwpKEYWagDpx+REVV Avf+d9Vqp7cUA==
- Thread-index: 7f9td2QrPNyEaLU3QJhDK4M0C7s0+APOPLvzTiLoartUcssGvfGsJCcjZYsBcvM=
- Thread-topic: Feedback SDL2 support
----- David Savinkoff wrote:
> ----- David Savinkoff wrote:
> > ----- David Savinkoff wrote:
> > > ----- David Savinkoff wrote:
> > > > ----- David Savinkoff wrote:
> > > > > ----- Thomas Huth wrote:
> > > > > > Am Sun, 24 May 2015 14:36:26 -0600 (MDT)
> > > > > >
> > > > > > Hi David,
> > > > > >
> > > > > > sorry for the very late reply, ... finally I had some spare minutes to
> > > > > > look into this...
> > > > > >
> > > > > > schrieb David Savinkoff:
> > > > > >
> > > > > > > ----- David Savinkoff wrote:
> > > > > > > >
> > > > > > > > When I toggle SDL2 fullscreen <F11>, the mouse cursor gets
> > > > > > > > repositioned because of the different screen sizes. The mouse
> > > > > > > > cursor doesn't always get repositioned in a manner that I
> > > > > > > > understand... probably in an incorrect manner. This probably causes
> > > > > > > > the host computer to change 'window focus' when changing the screen
> > > > > > > > sizes; giving bogus coordinates and wreaking havoc.
> > > > > > > >
> > > >
> > > > Hi Thomas,
> > > >
> > > > Here is a patch that gets Fullsrceen/Windowed toggling (F11)
> > > > to work significantly better on my CentOS 5 computer. The
> > > > FULLSCREEN and BORDERLESS flags are necessary to fix
> > > > two separate problems.
> > > >
> > > > Please try this patch on your system to investigate how
> > > > things change for you.
> > > >
> > > > Thank You,
> > > > David Savinkoff
screen.c.2.diff is the best I can do tonight.
--- hatari/src/screen.c 2015-10-18 03:37:26.000000000 -0700
+++ hatari/src/screen.c 2015-10-21 23:06:03.000000000 -0700
@@ -436,7 +436,7 @@
/* SDL Video attributes: */
if (bInFullScreen)
{
- sdlVideoFlags = SDL_WINDOW_FULLSCREEN_DESKTOP;
+ sdlVideoFlags = SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS | SDL_WINDOW_INPUT_GRABBED;
}
else
{