evas/cserve2: fix fonts flags.
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 4 Jun 2013 04:48:33 +0000 (13:48 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Tue, 4 Jun 2013 06:04:19 +0000 (15:04 +0900)
aka: fix italic fonts or T25 .

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
src/bin/evas/evas_cserve2.h
src/bin/evas/evas_cserve2_main_loop_linux.c
src/bin/evas/evas_cserve2_requests.c

index 43c38c8..277968b 100644 (file)
@@ -205,10 +205,11 @@ struct _Slave_Request_Funcs {
 typedef struct _Slave_Request Slave_Request;
 typedef struct _Slave_Request_Funcs Slave_Request_Funcs;
 
+/* This enum must be kept in sync with lib/evas/include/evas_common.h */
 typedef enum {
-   FONT_REND_REGULAR = 1,
-   FONT_REND_SLANT = 1 << 1,
-   FONT_REND_WEIGHT = 1 << 2
+   FONT_REND_REGULAR = 0,
+   FONT_REND_SLANT   = (1 << 0),
+   FONT_REND_WEIGHT  = (1 << 2)
 } Font_Rend_Flags;
 
 typedef enum {
index 52ed3a9..5222ab9 100644 (file)
@@ -513,7 +513,7 @@ cserve2_fd_watch_add(int fd, Fd_Flags flags, Fd_Watch_Cb cb, const void *data)
    ev.data.ptr = w_data;
 
    err = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
-   if (!err < 0)
+   if (err < 0)
      {
         ERR("Could not create epoll watch for fd %d.", fd);
         eina_hash_del(watch_list, &fd, NULL);
index 2fe540d..ab63db8 100644 (file)
@@ -31,7 +31,7 @@ typedef struct _Slave_Worker Slave_Worker;
  * of the request types on it is the order in which these requests will
  * be processed.
  */
-static struct _Request_Match
+static const struct _Request_Match
 {
    Slave_Request_Type rtype;
    Slave_Type stype;
@@ -45,7 +45,7 @@ static struct _Request_Match
    { CSERVE2_REQ_IMAGE_SPEC_LOAD, SLAVE_IMAGE, IMAGE_LOAD, 1 },
    { CSERVE2_REQ_FONT_LOAD, SLAVE_FONT, FONT_LOAD, 0 },
    { CSERVE2_REQ_FONT_GLYPHS_LOAD, SLAVE_FONT, FONT_GLYPHS_LOAD, 0 },
-   { CSERVE2_REQ_LAST, 0, 0, 0 }
+   { CSERVE2_REQ_LAST, SLAVE_NONE, ERROR, 0 }
 };
 
 static Slave *_create_image_slave(void *data);