Re: [PATCH] ui/sdl2: Allow high-dpi

2023-06-12 Thread Marc-André Lureau
Hi Antonio On Thu, Jun 8, 2023 at 1:33 PM Antonio Caggiano wrote: > Hi Marc-André, > > On 07/06/2023 12:21, Marc-André Lureau wrote: > > Hi Antonio > > > > On Wed, Jun 7, 2023 at 1:05 PM Antonio Caggiano < > quic_acagg...@quicinc.com> > > wrote: > > > >> Add the SDL_WINDOW_ALLOW_HIGHDPI flag whe

Re: [PATCH] ui/sdl2: Allow high-dpi

2023-06-08 Thread Antonio Caggiano
Hi Marc-André, On 07/06/2023 12:21, Marc-André Lureau wrote: Hi Antonio On Wed, Jun 7, 2023 at 1:05 PM Antonio Caggiano wrote: Add the SDL_WINDOW_ALLOW_HIGHDPI flag when creating a window and get the drawable size instead of the window size when setting up the framebuffer and the viewport.

Re: [PATCH] ui/sdl2: Allow high-dpi

2023-06-07 Thread Marc-André Lureau
Hi Antonio On Wed, Jun 7, 2023 at 1:05 PM Antonio Caggiano wrote: > Add the SDL_WINDOW_ALLOW_HIGHDPI flag when creating a window and get the > drawable size instead of the window size when setting up the framebuffer > and the viewport. > > What does this actually change? What about non-gl displa

[PATCH] ui/sdl2: Allow high-dpi

2023-06-07 Thread Antonio Caggiano
Add the SDL_WINDOW_ALLOW_HIGHDPI flag when creating a window and get the drawable size instead of the window size when setting up the framebuffer and the viewport. Signed-off-by: Antonio Caggiano --- ui/sdl2-gl.c | 4 ++-- ui/sdl2.c| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) di