tizen resource id should start from 1 26/63826/2 accepted/tizen/common/20160329.050505 accepted/tizen/ivi/20160328.070614 accepted/tizen/mobile/20160328.070445 accepted/tizen/tv/20160328.070514 accepted/tizen/wearable/20160328.070543 submit/tizen/20160328.050559
authorBoram Park <boram1288.park@samsung.com>
Mon, 28 Mar 2016 05:01:52 +0000 (14:01 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 28 Mar 2016 05:02:28 +0000 (14:02 +0900)
   The tizen resource id is unsigned integer. And e_pixmap_res_id_get()
   returns 0 as error. Therefore, It doesn't make sence the tizen resource
   id starts from 0.

Change-Id: Ia9d8e03536d9cc549884b530a91991e95f23cb95

src/bin/e_pixmap.c

index 2253e51..93d62ca 100644 (file)
@@ -353,9 +353,8 @@ e_pixmap_new(E_Pixmap_Type type, ...)
 
          if (!res_ids)
            res_ids = eina_hash_int32_new(NULL);
-         cp->res_id = res_id;
+         cp->res_id = ++res_id;
          eina_hash_add(res_ids, &res_id, cp);
-         res_id++;
          ELOG("PIXMAP NEW", cp, cp->client);
          break;