summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_modules.c
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-07-31 18:42:13 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-08-01 10:52:41 +0900
commit6c1833246ca23e7d07b8580e0a5978758c16fef8 (patch)
tree0f67f0be37f1579037385398a4ac552b24712af2 /src/lib/emotion/emotion_modules.c
parentdfb2fb2de560ef5608b53ded07e040d9c97bb5aa (diff)
emotion: fix backend order.
Diffstat (limited to 'src/lib/emotion/emotion_modules.c')
-rw-r--r--src/lib/emotion/emotion_modules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c
index f971c0152a..1ba3c10bc1 100644
--- a/src/lib/emotion/emotion_modules.c
+++ b/src/lib/emotion/emotion_modules.c
@@ -37,14 +37,14 @@ static int
37_emotion_engine_registry_entry_cmp(const void *pa, const void *pb) 37_emotion_engine_registry_entry_cmp(const void *pa, const void *pb)
38{ 38{
39 const Emotion_Engine_Registry_Entry *a = pa, *b = pb; 39 const Emotion_Engine_Registry_Entry *a = pa, *b = pb;
40 int r = a->priority - b->priority; 40 int r = b->priority - a->priority;
41 41
42 if (r == 0) 42 if (r == 0)
43 r = a->engine->priority - b->engine->priority; 43 r = b->engine->priority - a->engine->priority;
44 44
45 if (r == 0) 45 if (r == 0)
46 /* guarantee some order to ease debug */ 46 /* guarantee some order to ease debug */
47 r = strcmp(a->engine->name, b->engine->name); 47 r = strcmp(b->engine->name, a->engine->name);
48 48
49 return r; 49 return r;
50} 50}