[Cogl] [PATCH 4/4] cogland: Increase the display size to 800x600
Robert Bragg
robert at sixbynine.org
Thu Mar 21 14:57:00 PDT 2013
Cool, this patch series looks good to land to me:
Reviewed-by: Robert Bragg <robert at linux.intel.com>
thanks,
- Robert
On Thu, Mar 21, 2013 at 6:58 PM, Neil Roberts <neil at linux.intel.com> wrote:
> The previous display size of 640x480 was a bit small to test with.
> ---
> examples/cogland.c | 19 ++++++++++++-------
> 1 file changed, 12 insertions(+), 7 deletions(-)
>
> diff --git a/examples/cogland.c b/examples/cogland.c
> index 90055d6..98e0efe 100644
> --- a/examples/cogland.c
> +++ b/examples/cogland.c
> @@ -1041,20 +1041,25 @@ main (int argc, char **argv)
> if (!compositor.cogl_context)
> g_error ("Failed to create a Cogl context: %s\n", error->message);
>
> - compositor.virtual_width = 640;
> - compositor.virtual_height = 480;
> + compositor.virtual_width = 800;
> + compositor.virtual_height = 600;
>
> if (option_multiple_outputs)
> {
> + int hw = compositor.virtual_width / 2;
> + int hh = compositor.virtual_height / 2;
> /* Emulate compositing with multiple monitors... */
> - cogland_compositor_create_output (&compositor, 0, 0, 320, 240);
> - cogland_compositor_create_output (&compositor, 320, 0, 320, 240);
> - cogland_compositor_create_output (&compositor, 0, 240, 320, 240);
> - cogland_compositor_create_output (&compositor, 320, 240, 320, 240);
> + cogland_compositor_create_output (&compositor, 0, 0, hw, hh);
> + cogland_compositor_create_output (&compositor, hw, 0, hw, hh);
> + cogland_compositor_create_output (&compositor, 0, hh, hw, hh);
> + cogland_compositor_create_output (&compositor, hw, hh, hw, hh);
> }
> else
> {
> - cogland_compositor_create_output (&compositor, 0, 0, 640, 480);
> + cogland_compositor_create_output (&compositor,
> + 0, 0,
> + compositor.virtual_width,
> + compositor.virtual_height);
> }
>
> if (wl_display_add_global (compositor.wayland_display, &wl_shell_interface,
> --
> 1.7.11.3.g3c3efa5
>
> _______________________________________________
> Cogl mailing list
> Cogl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/cogl
More information about the Cogl
mailing list