2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/eglnative/clutter-stage-egl.c:
	(clutter_stage_egl_realize): Try to force the minimum and
	natural size on realization.
This commit is contained in:
Emmanuele Bassi 2008-06-25 13:52:17 +00:00
parent d651cc4337
commit 72bdcccf26
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglnative/clutter-stage-egl.c:
(clutter_stage_egl_realize): Try to force the minimum and
natural size on realization.
2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-backend.c:

View File

@ -86,6 +86,8 @@ clutter_stage_egl_realize (ClutterActor *actor)
#endif /* HAVE_COGL_GLES2 */
EGL_NONE };
ClutterUnit widthu, heightu;
status = eglGetConfigs (backend_egl->edpy,
configs,
2,
@ -153,6 +155,22 @@ clutter_stage_egl_realize (ClutterActor *actor)
stage_egl->surface_width,
stage_egl->surface_height);
widthu = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_width);
heightu = CLUTTER_UNITS_FROM_DEVICE (stage_egl->surface_height);
CLUTTER_NOTE (BACKEND, "Setting minimum and natural width and height "
"to the EGL surface width and height");
g_object_set (G_OBJECT (stage_egl),
"min-width", widthu,
"min-width-set", TRUE,
"natural-width", widthu,
"natural-width-set", TRUE,
"min-height", heightu,
"min-height-set", TRUE,
"natural-height", heightu,
"natural-height-set", TRUE,
NULL);
if (G_UNLIKELY (backend_egl->egl_context == NULL))
{