Evas: GL_X11 engine: Do not set UNUSED on variables that we actually

use and remove some extra whitespace between functions.



SVN revision: 60153
This commit is contained in:
Christopher Michael 2011-06-09 19:25:21 +00:00
parent 0213972e5b
commit 01c5c9f340
1 changed files with 5 additions and 14 deletions

View File

@ -1931,7 +1931,7 @@ eng_image_scale_hint_get(void *data __UNUSED__, void *image)
} }
static void static void
eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level) eng_image_map_draw(void *data, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
{ {
Evas_GL_Image *gim = image; Evas_GL_Image *gim = image;
Render_Engine *re; Render_Engine *re;
@ -1982,7 +1982,7 @@ eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *im
} }
static void * static void *
eng_image_map_surface_new(void *data __UNUSED__, int w, int h, int alpha) eng_image_map_surface_new(void *data, int w, int h, int alpha)
{ {
Render_Engine *re; Render_Engine *re;
@ -2011,7 +2011,7 @@ eng_image_content_hint_get(void *data __UNUSED__, void *image)
} }
static void static void
eng_image_cache_flush(void *data __UNUSED__) eng_image_cache_flush(void *data)
{ {
Render_Engine *re; Render_Engine *re;
int tmp_size; int tmp_size;
@ -2026,7 +2026,7 @@ eng_image_cache_flush(void *data __UNUSED__)
} }
static void static void
eng_image_cache_set(void *data __UNUSED__, int bytes) eng_image_cache_set(void *data, int bytes)
{ {
Render_Engine *re; Render_Engine *re;
@ -2039,17 +2039,14 @@ eng_image_cache_set(void *data __UNUSED__, int bytes)
static int static int
eng_image_cache_get(void *data __UNUSED__) eng_image_cache_get(void *data __UNUSED__)
{ {
Render_Engine *re;
re = (Render_Engine *)data;
return evas_common_image_get_cache(); return evas_common_image_get_cache();
} }
static void static void
eng_image_stride_get(void *data __UNUSED__, void *image, int *stride) eng_image_stride_get(void *data __UNUSED__, void *image, int *stride)
{ {
Evas_GL_Image *im = image; Evas_GL_Image *im = image;
*stride = im->w * 4; *stride = im->w * 4;
if ((im->tex) && (im->tex->pt->dyn.img)) if ((im->tex) && (im->tex->pt->dyn.img))
{ {
@ -2325,7 +2322,6 @@ eng_gl_surface_create(void *data, void *config, int w, int h)
return sfc; return sfc;
} }
static int static int
eng_gl_surface_destroy(void *data, void *surface) eng_gl_surface_destroy(void *data, void *surface)
{ {
@ -2379,8 +2375,6 @@ eng_gl_surface_destroy(void *data, void *surface)
return 1; return 1;
} }
static void * static void *
eng_gl_context_create(void *data, void *share_context) eng_gl_context_create(void *data, void *share_context)
{ {
@ -2457,7 +2451,6 @@ eng_gl_context_create(void *data, void *share_context)
return ctx; return ctx;
} }
static int static int
eng_gl_context_destroy(void *data, void *context) eng_gl_context_destroy(void *data, void *context)
{ {
@ -2513,8 +2506,6 @@ eng_gl_context_destroy(void *data, void *context)
return 1; return 1;
} }
static int static int
eng_gl_make_current(void *data, void *surface, void *context) eng_gl_make_current(void *data, void *surface, void *context)
{ {