From 1d67085e8a523891f72bb3c5d2a5275f541555ca Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 17 Oct 2011 17:33:42 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogl/winsys/cogl-winsys-egl.c b/cogl/winsys/cogl-winsys-egl.c index b2b35b178..c4e8170e8 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); } }