From: Akihiko Odaki <akihiko.odaki@gmail.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Gerd Hoffmann" <kraxel@redhat.com>,
qemu-arm@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH-for-9.1 3/3] ui/console: Add 'rotate_arcdegree' field to allow per-console rotation
Date: Mon, 18 Mar 2024 19:36:26 +0900 [thread overview]
Message-ID: <ab5892b3-38ec-43c5-9c82-8595ad4c77e0@gmail.com> (raw)
In-Reply-To: <20240318100543.78846-4-philmd@linaro.org>
On 2024/03/18 19:05, Philippe Mathieu-Daudé wrote:
> Add the 'rotate_arcdegree' field to QemuConsole and remove
> the use of the 'graphic_rotate' global.
I think QemuGraphicConsole is a better place to put the field.
Regards,
Akihiko Odaki
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> ui/console-priv.h | 1 +
> ui/console.c | 7 +++----
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/ui/console-priv.h b/ui/console-priv.h
> index 88569ed2cc..6e54b476d9 100644
> --- a/ui/console-priv.h
> +++ b/ui/console-priv.h
> @@ -31,6 +31,7 @@ struct QemuConsole {
> const GraphicHwOps *hw_ops;
> void *hw;
> CoQueue dump_queue;
> + unsigned rotate_arcdegree;
>
> QTAILQ_ENTRY(QemuConsole) next;
> };
> diff --git a/ui/console.c b/ui/console.c
> index 84aee76846..a36674bacf 100644
> --- a/ui/console.c
> +++ b/ui/console.c
> @@ -37,7 +37,6 @@
> #include "trace.h"
> #include "exec/memory.h"
> #include "qom/object.h"
> -#include "sysemu/sysemu.h"
>
> #include "console-priv.h"
>
> @@ -210,17 +209,17 @@ void qemu_console_set_window_id(QemuConsole *con, int window_id)
>
> void qemu_console_set_rotate(QemuConsole *con, unsigned arcdegree)
> {
> - graphic_rotate = arcdegree;
> + con->rotate_arcdegree = arcdegree;
> }
>
> bool qemu_console_is_rotated(QemuConsole *con)
> {
> - return graphic_rotate != 0;
> + return con->rotate_arcdegree != 0;
> }
>
> unsigned qemu_console_get_rotate_arcdegree(QemuConsole *con)
> {
> - return graphic_rotate;
> + return con->rotate_arcdegree;
> }
>
> void graphic_hw_invalidate(QemuConsole *con)
next prev parent reply other threads:[~2024-03-18 10:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 10:05 [PATCH-for-9.1 0/3] ui/display: Introduce API to change console orientation Philippe Mathieu-Daudé
2024-03-18 10:05 ` [PATCH-for-9.1 1/3] ui/console: " Philippe Mathieu-Daudé
2024-03-18 10:05 ` [PATCH-for-9.1 2/3] hw/display/pxa2xx_lcd: Set rotation angle using qemu_console_set_rotate Philippe Mathieu-Daudé
2024-03-18 10:05 ` [PATCH-for-9.1 3/3] ui/console: Add 'rotate_arcdegree' field to allow per-console rotation Philippe Mathieu-Daudé
2024-03-18 10:36 ` Akihiko Odaki [this message]
2024-03-18 11:31 ` Philippe Mathieu-Daudé
2024-03-18 10:13 ` [PATCH-for-9.1 0/3] ui/display: Introduce API to change console orientation Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ab5892b3-38ec-43c5-9c82-8595ad4c77e0@gmail.com \
--to=akihiko.odaki@gmail.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).