win32/stage: Implement get_active_framebuffer()

This commit is contained in:
Emmanuele Bassi 2011-11-03 16:47:57 +00:00
parent 42af690255
commit 672ab70144

View File

@ -538,6 +538,14 @@ clutter_stage_win32_redraw (ClutterStageWindow *stage_window)
cogl_framebuffer_swap_buffers (COGL_FRAMEBUFFER (stage_win32->onscreen)); 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 static void
clutter_stage_win32_dispose (GObject *gobject) clutter_stage_win32_dispose (GObject *gobject)
{ {
@ -598,6 +606,7 @@ clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
iface->realize = clutter_stage_win32_realize; iface->realize = clutter_stage_win32_realize;
iface->unrealize = clutter_stage_win32_unrealize; iface->unrealize = clutter_stage_win32_unrealize;
iface->redraw = clutter_stage_win32_redraw; iface->redraw = clutter_stage_win32_redraw;
iface->get_active_framebuffer = clutter_stage_win32_get_active_framebuffer;
} }
/** /**