[cogl] cogl-winsys-egl: Use the abstraction to update the window size
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] cogl-winsys-egl: Use the abstraction to update the window size
- Date: Tue, 18 Oct 2011 10:02:43 +0000 (UTC)
commit 1d67085e8a523891f72bb3c5d2a5275f541555ca
Author: Neil Roberts <neil linux intel com>
Date: Mon Oct 17 17:33:42 2011 +0100
cogl-winsys-egl: Use the abstraction to update the window size
Previously the EGL backend was directly prodding the width/height
members of the framebuffer structure when a configure notify event is
received. However this doesn't set the dirty flag for the viewport so
Cogl will continue using the wrong viewport y offset. The GLX backend
is already using an abstraction for updating the size which does set
the flag. This patch just makes the EGL backend also use that
abstraction.
cogl/winsys/cogl-winsys-egl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/cogl/winsys/cogl-winsys-egl.c b/cogl/winsys/cogl-winsys-egl.c
index b2b35b1..c4e8170 100644
--- a/cogl/winsys/cogl-winsys-egl.c
+++ b/cogl/winsys/cogl-winsys-egl.c
@@ -275,9 +275,9 @@ event_filter_cb (XEvent *xevent, void *data)
{
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (onscreen);
- /* XXX: consider adding an abstraction for this... */
- framebuffer->width = xevent->xconfigure.width;
- framebuffer->height = xevent->xconfigure.height;
+ _cogl_framebuffer_winsys_update_size (framebuffer,
+ xevent->xconfigure.width,
+ xevent->xconfigure.height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]