All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/1] sandbox: make SDL window resizable
@ 2020-10-09 21:44 Heinrich Schuchardt
  2020-10-12  3:35 ` Simon Glass
  2020-10-27  1:01 ` Simon Glass
  0 siblings, 2 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2020-10-09 21:44 UTC (permalink / raw)
  To: u-boot

Without resizing the SDL window showed by

    ./u-boot -D -l

is not legible on a high resolution screen.

Allow resizing the window

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
v2:
	Do not maximize the window.
---
 arch/sandbox/cpu/sdl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/sandbox/cpu/sdl.c b/arch/sandbox/cpu/sdl.c
index 7dc3dab32e..911247123f 100644
--- a/arch/sandbox/cpu/sdl.c
+++ b/arch/sandbox/cpu/sdl.c
@@ -127,7 +127,8 @@ int sandbox_sdl_init_display(int width, int height, int log2_bpp,
 	sdl.pitch = sdl.width * sdl.depth / 8;
 	SDL_Window *screen = SDL_CreateWindow("U-Boot", SDL_WINDOWPOS_UNDEFINED,
 					      SDL_WINDOWPOS_UNDEFINED,
-					      sdl.vis_width, sdl.vis_height, 0);
+					      sdl.vis_width, sdl.vis_height,
+					      SDL_WINDOW_RESIZABLE);
 	if (!screen) {
 		printf("Unable to initialise SDL screen: %s\n",
 		       SDL_GetError());
--
2.28.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 1/1] sandbox: make SDL window resizable
  2020-10-09 21:44 [PATCH v2 1/1] sandbox: make SDL window resizable Heinrich Schuchardt
@ 2020-10-12  3:35 ` Simon Glass
  2020-10-27  1:01 ` Simon Glass
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2020-10-12  3:35 UTC (permalink / raw)
  To: u-boot

On Fri, 9 Oct 2020 at 15:44, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Without resizing the SDL window showed by
>
>     ./u-boot -D -l
>
> is not legible on a high resolution screen.
>
> Allow resizing the window
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> v2:
>         Do not maximize the window.
> ---
>  arch/sandbox/cpu/sdl.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/1] sandbox: make SDL window resizable
  2020-10-09 21:44 [PATCH v2 1/1] sandbox: make SDL window resizable Heinrich Schuchardt
  2020-10-12  3:35 ` Simon Glass
@ 2020-10-27  1:01 ` Simon Glass
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2020-10-27  1:01 UTC (permalink / raw)
  To: u-boot

On Fri, 9 Oct 2020 at 15:44, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> Without resizing the SDL window showed by
>
>     ./u-boot -D -l
>
> is not legible on a high resolution screen.
>
> Allow resizing the window
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> v2:
>         Do not maximize the window.
> ---
>  arch/sandbox/cpu/sdl.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-27  1:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09 21:44 [PATCH v2 1/1] sandbox: make SDL window resizable Heinrich Schuchardt
2020-10-12  3:35 ` Simon Glass
2020-10-27  1:01 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.