mirror of
https://github.com/brl/mutter.git
synced 2025-08-02 14:44:40 +00:00
2006-11-30 Emmanuele Bassi <ebassi@openedhand.com>
* Makefile.am: Remove the gtk directory from the SUBDIRS. * clutter/clutter-stage.h: * clutter/clutter-stage.c: Add clutter_stage_swap_buffers(), which swaps the GL buffers. This fixes the redraw in the GTK widget.
This commit is contained in:
@@ -137,7 +137,7 @@ libclutter_@CLUTTER_MAJORMINOR@_la_LIBADD = \
|
||||
@CLUTTER_LIBS@ $(top_srcdir)/clutter/pango/libpangoclutter.la
|
||||
libclutter_@CLUTTER_MAJORMINOR@_la_LDFLAGS = @CLUTTER_LT_LDFLAGS@
|
||||
libclutter_@CLUTTER_MAJORMINOR@_la_DEPENDENCIES = \
|
||||
$(top_srcdir)/clutter/pango/libpangoclutter.a
|
||||
$(top_srcdir)/clutter/pango/libpangoclutter.la
|
||||
|
||||
clutterheadersdir = $(includedir)/clutter-@CLUTTER_MAJORMINOR@/clutter
|
||||
clutterheaders_HEADERS = $(source_h) \
|
||||
|
@@ -1138,3 +1138,16 @@ clutter_stage_get_actor_at_pos (ClutterStage *stage,
|
||||
return found;
|
||||
}
|
||||
|
||||
void
|
||||
clutter_stage_swap_buffers (ClutterStage *stage)
|
||||
{
|
||||
ClutterStagePrivate *priv;
|
||||
ClutterMainContext *context;
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_STAGE (stage));
|
||||
|
||||
priv = stage->priv;
|
||||
context = clutter_context_get_default ();
|
||||
|
||||
glXSwapBuffers (context->xdpy, stage->priv->xwin);
|
||||
}
|
||||
|
@@ -124,7 +124,8 @@ GdkPixbuf * clutter_stage_snapshot (ClutterStage *stage,
|
||||
gint y,
|
||||
gint width,
|
||||
gint height);
|
||||
const XVisualInfo * clutter_stage_get_xvisual (ClutterStage *stage);
|
||||
const XVisualInfo * clutter_stage_get_xvisual (ClutterStage *stage);
|
||||
void clutter_stage_swap_buffers (ClutterStage *stage);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user