Re: [PATCH] gl: Keep window size the same as surface's size.
Chris Wilson <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <1340962553_108198@CP5-2952> |
On Fri, 29 Jun 2012 08:48:49 +0800, Chuanbo Weng <[email protected]> wrote: > When we pass non-integer width and height to > _cairo_boilerplate_gl_create_window(), it will create a window and > a gl-surface with different size. This will result in some problems. > For example, if we create a window and a gl-surface by invoking > _cairo_boilerplate_gl_create_window(, , 39.5, 39.5, ...), and do a > simple fill operation: > cairo_set_source_rgb (cr, 1, 0, 0); > cairo_rectangle (cr, 0, 0, 10, 1); > cairo_fill(cr); > There will be no red rectangle in output, which is not correct. > This patch fixes 5 cases in cairo-test-suite, for example, > group-unaligned. I thought the patch was on the right lines, but would rather see the width/height converted to their integer representation upfront rather than at each use. So I've pushed a reworked patch, many thanks. -Chris -- Chris Wilson, Intel Open Source Technology Centre -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo