Evas: Implement scale_hint_get/set for gl_sdl
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 23 Jul 2012 11:59:18 +0000 (11:59 +0000)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 23 Jul 2012 11:59:18 +0000 (11:59 +0000)
SVN revision: 74323

legacy/evas/src/modules/engines/gl_sdl/evas_engine.c

index b8ed520..c032ad1 100644 (file)
@@ -807,6 +807,7 @@ eng_image_draw(void *data, void *context, void *surface, void *image, int src_x,
 static void
 eng_image_scale_hint_set(void *data __UNUSED__, void *image, int hint)
 {
+   if (image) evas_gl_common_image_scale_hint_set(image, hint);
 }
 
 static void
@@ -876,7 +877,9 @@ eng_image_map_surface_free(void *data __UNUSED__, void *surface)
 static int
 eng_image_scale_hint_get(void *data __UNUSED__, void *image)
 {
-   return EVAS_IMAGE_SCALE_HINT_NONE;
+   Evas_GL_Image *gim = image;
+   if (!gim) return EVAS_IMAGE_SCALE_HINT_NONE;
+   return gim->scale_hint;
 }
 
 static void