[cogl/cogl-1.8] 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-1.8] cogl-winsys-egl: Use the abstraction to update the window size
- Date: Tue, 18 Oct 2011 10:20:55 +0000 (UTC)
commit 12761d42c537d09da6e1a554bb539370a7b175e3
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.
(cherry picked from commit 1d67085e8a523891f72bb3c5d2a5275f541555ca)
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 86eaa4d..6ad3ef1 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]