summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2009-12-22 23:11:57 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2009-12-22 23:11:57 +0000
commit51c00c6526821e97442204e8a18e46fcc4b73fd9 (patch)
treec83cb571f577b3191b3507005c5211d4632599bf /legacy/evas/src/modules/engines/gl_x11/evas_engine.c
parent0a9456ccf73706efac262f5844cb58e22984bd19 (diff)
fix evas image loading error reporting.
Evas image load was always reporint "generic" error, since it was disconnected from actual loader modules. This commit will break the module loader API (as it's restricted to inside Evas, this should be no problem). The return was turned into "Eina_Bool" for clarity, while an extra "int *error" is responsible to report errors. This approach was choosen to force compiler warnings and to try avoid mistakes as EINA_FALSE == EVAS_LOAD_ERROR_NONE and thus we'd get opposite behavior if something slips. Most loaders play well, except by eet that does not provide means to know if the file open failed due missing file, incorrect format or corrupted file :-( Please report any issues. I added eina_log debugging to loader functions, just run your Evas application as: EINA_LOG_LEVELS=evas_main:4 your_app SVN revision: 44666
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_x11/evas_engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
index 5d4939bef2..26f217cc1b 100644
--- a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
+++ b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
@@ -788,9 +788,9 @@ eng_image_load(void *data, const char *file, const char *key, int *error, Evas_I
788 Render_Engine *re; 788 Render_Engine *re;
789 789
790 re = (Render_Engine *)data; 790 re = (Render_Engine *)data;
791 *error = 0; 791 *error = EVAS_LOAD_ERROR_NONE;
792 eng_window_use(re->win); 792 eng_window_use(re->win);
793 return evas_gl_common_image_load(re->win->gl_context, file, key, lo); 793 return evas_gl_common_image_load(re->win->gl_context, file, key, lo, error);
794} 794}
795 795
796static void * 796static void *