From c963d75dfdeec11f82e79e727062fbf89afa2c04 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 22 Apr 2012 09:19:23 +1000 Subject: Update EFL to latest beta. --- .../modules/engines/software_generic/evas_engine.c | 24 +++++++++------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'libraries/evas/src/modules/engines/software_generic/evas_engine.c') diff --git a/libraries/evas/src/modules/engines/software_generic/evas_engine.c b/libraries/evas/src/modules/engines/software_generic/evas_engine.c index 48944dd..4667f6b 100644 --- a/libraries/evas/src/modules/engines/software_generic/evas_engine.c +++ b/libraries/evas/src/modules/engines/software_generic/evas_engine.c @@ -591,11 +591,8 @@ eng_image_border_set(void *data __UNUSED__, void *image, int l __UNUSED__, int r } static void -eng_image_border_get(void *data __UNUSED__, void *image, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__) +eng_image_border_get(void *data __UNUSED__, void *image __UNUSED__, int *l __UNUSED__, int *r __UNUSED__, int *t __UNUSED__, int *b __UNUSED__) { - RGBA_Image *im; - - im = image; } static char * @@ -704,18 +701,16 @@ eng_image_size_get(void *data __UNUSED__, void *image, int *w, int *h) static void * eng_image_size_set(void *data __UNUSED__, void *image, int w, int h) { - Image_Entry *im; - - im = image; - return evas_cache_image_size_set(image, w, h); + Image_Entry *im = image; + if (!im) return NULL; + return evas_cache_image_size_set(im, w, h); } static void * eng_image_dirty_region(void *data __UNUSED__, void *image, int x, int y, int w, int h) { Image_Entry *im = image; - - if (!image) return NULL; + if (!im) return NULL; return evas_cache_image_dirty(im, x, y, w, h); } @@ -931,11 +926,10 @@ static void * eng_image_map_surface_new(void *data __UNUSED__, int w, int h, int alpha) { void *surface; - DATA32 *pixels; surface = evas_cache_image_copied_data(evas_common_image_cache_get(), w, h, NULL, alpha, EVAS_COLORSPACE_ARGB8888); - pixels = evas_cache_image_pixels(surface); + evas_cache_image_pixels(surface); return surface; } @@ -1784,6 +1778,7 @@ static Evas_Func func = NULL, // need software mesa for gl rendering <- gl_proc_address_get NULL, // need software mesa for gl rendering <- gl_native_surface_get NULL, // need software mesa for gl rendering <- gl_api_get + NULL, // need software mesa for gl rendering <- gl_img_obj_set eng_image_load_error_get, eng_font_run_font_end_get, eng_image_animated_get, @@ -2519,7 +2514,7 @@ evgl_glShaderSource(GLuint shader, GLsizei count, const char** string, const GLi static void -evgl_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) +evgl_glGetShaderPrecisionFormat(GLenum shadertype __UNUSED__, GLenum precisiontype __UNUSED__, GLint* range, GLint* precision) { if (range) { @@ -2531,7 +2526,6 @@ evgl_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* precision[0] = 24; // floor(-log2((1.0/16777218.0))); } return; - shadertype = precisiontype = 0; } static void @@ -2567,6 +2561,8 @@ override_gl_apis(Evas_GL_API *api) ORD(glAttachShader); ORD(glBindAttribLocation); ORD(glBindBuffer); + ORD(glBindFramebuffer); + ORD(glBindRenderbuffer); ORD(glBindTexture); ORD(glBlendColor); ORD(glBlendEquation); -- cgit v1.1