2008-06-26 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c: (clutter_actor_set_min_width), (clutter_actor_set_min_height), (clutter_actor_set_natural_width), (clutter_actor_set_natural_height): Ignore any override of the minimum and natural size of the stage on backends that only support static stages. * clutter/clutter-stage.c (clutter_stage_allocate): Use the preferred size of the ClutterStage implementation instead of the display size. * clutter/clutter-backend.[ch]: Remove get_display_size() and clutter_backend_get_display_size(). * clutter/eglnative/clutter-backend-egl.c: * clutter/fruity/clutter-backend-fruity.c: * clutter/osx/clutter-backend-osx.c: * clutter/sdl/clutter-backend-sdl.c: * clutter/win32/clutter-backend-win32.c: * clutter/x11/clutter-backend-x11.c: Remove get_display_size() implementations.
This commit is contained in:
@ -167,32 +167,6 @@ clutter_backend_sdl_get_features (ClutterBackend *backend)
|
||||
return CLUTTER_FEATURE_STAGE_CURSOR;
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_backend_sdl_get_display_size (ClutterBackend *backend,
|
||||
gint *width,
|
||||
gint *height)
|
||||
{
|
||||
SDL_Surface *surface;
|
||||
|
||||
surface = SDL_GetVideoSurface ();
|
||||
if (!surface)
|
||||
{
|
||||
if (width)
|
||||
*width = 0;
|
||||
|
||||
if (height)
|
||||
*height = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (width)
|
||||
*width = surface->w;
|
||||
|
||||
if (height)
|
||||
*height = surface->h;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_backend_sdl_class_init (ClutterBackendSDLClass *klass)
|
||||
{
|
||||
@ -210,7 +184,6 @@ clutter_backend_sdl_class_init (ClutterBackendSDLClass *klass)
|
||||
backend_class->ensure_context = clutter_backend_sdl_ensure_context;
|
||||
backend_class->redraw = clutter_backend_sdl_redraw;
|
||||
backend_class->get_features = clutter_backend_sdl_get_features;
|
||||
backend_class->get_display_size = clutter_backend_sdl_get_display_size;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user