forked from enlightenment/efl
evas/cserve2: fix fonts flags.
aka: fix italic fonts or T25 . Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
This commit is contained in:
parent
d3e1cb055a
commit
452a301bfa
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue