mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
2008-06-11 Iain Holmes <iain@openedhand.com>
* configure.ac: Detect the GL headers in flavour=fruity * clutter/fruity/clutter-stage-fruity.c: Update the Fruity backend to use the new size negotiation API.
This commit is contained in:
parent
583ea401c3
commit
04df29dbd4
@ -1,3 +1,10 @@
|
||||
2008-06-11 Iain Holmes <iain@openedhand.com>
|
||||
|
||||
* configure.ac: Detect the GL headers in flavour=fruity
|
||||
|
||||
* clutter/fruity/clutter-stage-fruity.c: Update the Fruity backend to
|
||||
use the new size negotiation API.
|
||||
|
||||
2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-label.c (clutter_label_allocate): Keep the
|
||||
|
@ -188,30 +188,33 @@ clutter_stage_egl_realize (ClutterActor *actor)
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_stage_egl_query_coords (ClutterActor *self,
|
||||
ClutterActorBox *box)
|
||||
clutter_stage_egl_get_preferred_width (ClutterActor *self,
|
||||
ClutterUnit for_height,
|
||||
ClutterUnit *min_width_p,
|
||||
ClutterUnit *natural_width_p)
|
||||
{
|
||||
ClutterStageEGL *stage_egl = CLUTTER_STAGE_EGL (self);
|
||||
|
||||
box->x1 = box->y1 = 0;
|
||||
box->x2 = box->x1 + CLUTTER_UNITS_FROM_INT (stage_egl->surface_width);
|
||||
box->y2 = box->y1 + CLUTTER_UNITS_FROM_INT (stage_egl->surface_height);
|
||||
if (min_width_p)
|
||||
*min_width_p = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_width);
|
||||
|
||||
if (natural_width_p)
|
||||
*natural_width_p = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_width);
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_stage_egl_request_coords (ClutterActor *self,
|
||||
ClutterActorBox *box)
|
||||
clutter_stage_egl_get_preferred_height (ClutterActor *self,
|
||||
ClutterUnit for_width,
|
||||
ClutterUnit *min_height_p,
|
||||
ClutterUnit *natural_height_p)
|
||||
{
|
||||
ClutterStageEGL *stage_egl = CLUTTER_STAGE_EGL (self);
|
||||
|
||||
/* framebuffer no resize */
|
||||
box->x1 = 0;
|
||||
box->y1 = 0;
|
||||
box->x2 = CLUTTER_UNITS_FROM_INT (stage_egl->surface_width);
|
||||
box->y2 = CLUTTER_UNITS_FROM_INT (stage_egl->surface_height);
|
||||
if (min_height_p)
|
||||
*min_height_p = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_height);
|
||||
|
||||
CLUTTER_ACTOR_CLASS (clutter_stage_egl_parent_class)->request_coords (self,
|
||||
box);
|
||||
if (natural_height_p)
|
||||
*natural_height_p = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_height);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -236,8 +239,8 @@ clutter_stage_egl_class_init (ClutterStageEGLClass *klass)
|
||||
actor_class->hide = clutter_stage_egl_hide;
|
||||
actor_class->realize = clutter_stage_egl_realize;
|
||||
actor_class->unrealize = clutter_stage_egl_unrealize;
|
||||
actor_class->request_coords = clutter_stage_egl_request_coords;
|
||||
actor_class->query_coords = clutter_stage_egl_query_coords;
|
||||
actor_class->get_preferred_width = clutter_stage_egl_get_preferred_width;
|
||||
actor_class->get_preferred_height = clutter_stage_egl_get_preferred_height;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -283,6 +283,15 @@ case $glesversion in
|
||||
fruity)
|
||||
CLUTTER_COGL="gles"
|
||||
AC_DEFINE([HAVE_COGL_GLES], 1, [Have GL/ES for rendering])
|
||||
|
||||
clutter_gl_header="GLES/gl.h"
|
||||
CLUTTER_COGL="gles"
|
||||
AC_DEFINE([HAVE_COGL_GLES], 1, [Have GL/ES for rendering])
|
||||
|
||||
AC_CHECK_HEADERS([GLES/egl.h],,
|
||||
[AC_MSG_ERROR([Unable to locate required GLES headers])])
|
||||
AC_CHECK_HEADERS([$clutter_gl_header],,
|
||||
[AC_MSG_ERROR([Unable to locate required GLES headers])])
|
||||
;;
|
||||
|
||||
*) AC_MSG_ERROR([Invalid GL ES Version '$glesversion' specified])
|
||||
|
Loading…
Reference in New Issue
Block a user