[Spice-devel] [PATCH] qxl_kms: read virtual monitor size from xorg.conf
Hans de Goede
hdegoede at redhat.com
Mon Jun 9 08:08:46 PDT 2014
Hi,
On 06/09/2014 01:40 PM, Alon Levy wrote:
> Signed-off-by: Alon Levy <alevy at redhat.com>
A better commit messages explaining the why, what and how of this patch
would be nice.
Regards,
Hans
> ---
> src/qxl_kms.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/qxl_kms.c b/src/qxl_kms.c
> index c31c62d..d952495 100644
> --- a/src/qxl_kms.c
> +++ b/src/qxl_kms.c
> @@ -164,8 +164,8 @@ Bool qxl_pre_init_kms(ScrnInfoPtr pScrn, int flags)
> if (drmmode_pre_init(pScrn, &qxl->drmmode, pScrn->bitsPerPixel / 8) == FALSE)
> goto out;
>
> - qxl->virtual_x = 1024;
> - qxl->virtual_y = 768;
> + qxl->virtual_x = -1;
> + qxl->virtual_y = -1;
>
> pScrn->display->virtualX = qxl->virtual_x;
> pScrn->display->virtualY = qxl->virtual_y;
> @@ -335,6 +335,9 @@ Bool qxl_screen_init_kms(SCREEN_INIT_ARGS_DECL)
> if (!xf86CrtcScreenInit (pScreen))
> return FALSE;
>
> + qxl->virtual_x = pScrn->currentMode->HDisplay;
> + qxl->virtual_y = pScrn->currentMode->VDisplay;
> +
> if (!qxl_resize_primary_to_virtual (qxl))
> return FALSE;
>
>
More information about the Spice-devel
mailing list