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:
parent
d651cc4337
commit
72bdcccf26
@ -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:
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user