diff mbox series

[PATCH-for-9.1,v2,2/3] hw/display/pxa2xx_lcd: Set rotation angle using qemu_console_set_rotate

Message ID 20240318113140.88151-3-philmd@linaro.org
State New
Headers show
Series ui/display: Introduce API to change console orientation | expand

Commit Message

Philippe Mathieu-Daudé March 18, 2024, 11:31 a.m. UTC
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/display/pxa2xx_lcd.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Akihiko Odaki March 19, 2024, 2:54 a.m. UTC | #1
On 2024/03/18 20:31, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>

> ---
>   hw/display/pxa2xx_lcd.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/hw/display/pxa2xx_lcd.c b/hw/display/pxa2xx_lcd.c
> index a9d0d981a0..7d03fa57d0 100644
> --- a/hw/display/pxa2xx_lcd.c
> +++ b/hw/display/pxa2xx_lcd.c
> @@ -1439,6 +1439,7 @@ PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem,
>       memory_region_add_subregion(sysmem, base, &s->iomem);
>   
>       s->con = graphic_console_init(NULL, 0, &pxa2xx_ops, s);
> +    qemu_console_set_rotate(s->con, graphic_rotate);
>   
>       vmstate_register(NULL, 0, &vmstate_pxa2xx_lcdc, s);
>
diff mbox series

Patch

diff --git a/hw/display/pxa2xx_lcd.c b/hw/display/pxa2xx_lcd.c
index a9d0d981a0..7d03fa57d0 100644
--- a/hw/display/pxa2xx_lcd.c
+++ b/hw/display/pxa2xx_lcd.c
@@ -1439,6 +1439,7 @@  PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem,
     memory_region_add_subregion(sysmem, base, &s->iomem);
 
     s->con = graphic_console_init(NULL, 0, &pxa2xx_ops, s);
+    qemu_console_set_rotate(s->con, graphic_rotate);
 
     vmstate_register(NULL, 0, &vmstate_pxa2xx_lcdc, s);