[cogl] Make sure Cogl always knows the current window geometry
authorRobert Bragg <robert@linux.intel.com>
Wed, 21 Oct 2009 22:24:49 +0000 (23:24 +0100)
committerRobert Bragg <robert@linux.intel.com>
Wed, 4 Nov 2009 03:23:20 +0000 (03:23 +0000)
commit12af2751392ea53959fa41dd7cb19e07358655f2
treed1cf73f59729d2023e3ee98760595b3bc573a2ad
parente3391b0173479b9ba3b01321ab606d83999bee1a
[cogl] Make sure Cogl always knows the current window geometry

Because Cogl defines the origin of viewport and window coordinates to be
top-left it always needs to know the size of the current window so that Cogl
window/viewport coordinates can be transformed into OpenGL coordinates.

This also fixes cogl_read_pixels to use the current draw buffer height
instead of the viewport height to determine the OpenGL y coordinate to use
for glReadPixels.
clutter/clutter-backend.c
clutter/clutter-stage.c
clutter/cogl/cogl/cogl-context.c
clutter/cogl/cogl/cogl-context.h
clutter/cogl/cogl/cogl-draw-buffer.c
clutter/cogl/cogl/cogl.h.in