[clutter/wip/backend-next: 4/8] win32/stage: Implement get_active_framebuffer()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/backend-next: 4/8] win32/stage: Implement get_active_framebuffer()
- Date: Fri, 4 Nov 2011 12:22:26 +0000 (UTC)
commit d0428fcdf3f86af8927d5ded0043e555840764f2
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Nov 3 16:47:57 2011 +0000
win32/stage: Implement get_active_framebuffer()
clutter/win32/clutter-stage-win32.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/clutter/win32/clutter-stage-win32.c b/clutter/win32/clutter-stage-win32.c
index 573b013..c1e7654 100644
--- a/clutter/win32/clutter-stage-win32.c
+++ b/clutter/win32/clutter-stage-win32.c
@@ -538,6 +538,14 @@ clutter_stage_win32_redraw (ClutterStageWindow *stage_window)
cogl_framebuffer_swap_buffers (COGL_FRAMEBUFFER (stage_win32->onscreen));
}
+static CoglFramebuffer *
+clutter_stage_win32_get_active_framebuffer (ClutterStageWindow *stage_window)
+{
+ ClutterStageWin32 *stage_win32 = CLUTTER_STAGE_WIN32 (stage_window);
+
+ return COGL_FRAMEBUFFER (stage_win32->onscreen);
+}
+
static void
clutter_stage_win32_dispose (GObject *gobject)
{
@@ -598,6 +606,7 @@ clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
iface->realize = clutter_stage_win32_realize;
iface->unrealize = clutter_stage_win32_unrealize;
iface->redraw = clutter_stage_win32_redraw;
+ iface->get_active_framebuffer = clutter_stage_win32_get_active_framebuffer;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]