[PATCH 00/15] weston scaling support

Hardening rdp.effort at gmail.com
Wed May 22 16:05:43 PDT 2013


Le 22/05/2013 14:41, alexl at redhat.com a écrit :
> From: Alexander Larsson <alexl at redhat.com>
>
> This adds support to weston (X11 and DRM backends) for output
> scale and buffer_scale. It also contains some work on the
> example clients to make them support buffer scaling.
>
> I think the support is fairly comprehensive, although I'm aware of
> a few outstanding issues:
>
> * The drm backend doesn't upscale pointers on the DRM backend
> * There is no support in the desktop shell for setting up a higher resolution
>    cursor image on scaled outputs
> * I did not yet look at the screenshoter/read_pixels APIs
>
> Overall I think the approach is working out well, but an obvious issue is how we handle
> scaling wrt modes. I'll bring this up in another mail.
[...]

This trivial patch is missing to have it work with the RDP compositor:
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 15e340c..48ac77d 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -473,7 +473,7 @@ rdp_compositor_create_output(struct rdp_compositor 
*c, int width, int height,

         output->base.current = currentMode;
         weston_output_init(&output->base, &c->base, 0, 0, width, height,
-                       WL_OUTPUT_TRANSFORM_NORMAL);
+                       WL_OUTPUT_TRANSFORM_NORMAL, 1);

         output->base.make = "weston";
         output->base.model = "rdp";



More information about the wayland-devel mailing list