Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/directfb Modified Files: evas_engine_dfb.c Log Message: ooh issues! thanks jose! =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/directfb/evas_engine_dfb.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- evas_engine_dfb.c 20 Mar 2005 15:57:55 -0000 1.11 +++ evas_engine_dfb.c 28 Mar 2005 03:58:04 -0000 1.12 @@ -418,11 +418,11 @@ Render_Engine *re; re = (Render_Engine *) data; - *x = ((RGBA_Draw_Context *) data)->clip.x; - *y = ((RGBA_Draw_Context *) data)->clip.y; - *w = ((RGBA_Draw_Context *) data)->clip.w; - *h = ((RGBA_Draw_Context *) data)->clip.h; - return ((RGBA_Draw_Context *) data)->clip.use; + *x = ((RGBA_Draw_Context *) context)->clip.x; + *y = ((RGBA_Draw_Context *) context)->clip.y; + *w = ((RGBA_Draw_Context *) context)->clip.w; + *h = ((RGBA_Draw_Context *) contect)->clip.h; + return ((RGBA_Draw_Context *) context)->clip.use; } void @@ -440,17 +440,13 @@ evas_engine_directfb_context_color_get(void *data, void *context, int *r, int *g, int *b, int *a) { + Render_Engine *re; - DATA32 p; - DATA8 *pp; - RGBA_Draw_Context *dc = (RGBA_Draw_Context *) context; - - p = dc->col.col; - pp = (DATA8 *) & p; - *r = R_VAL(pp); - *g = G_VAL(pp); - *b = B_VAL(pp); - *a = A_VAL(pp); + re = (Render_Engine *) data; + *r = (int)(R_VAL(&((RGBA_Draw_Context *)context)->col.col)); + *g = (int)(G_VAL(&((RGBA_Draw_Context *)context)->col.col)); + *b = (int)(B_VAL(&((RGBA_Draw_Context *)context)->col.col)); + *a = (int)(A_VAL(&((RGBA_Draw_Context *)context)->col.col)); } void @@ -476,17 +472,13 @@ evas_engine_directfb_context_multiplier_get(void *data, void *context, int *r, int *g, int *b, int *a) { - DATA32 p; - DATA8 *pp; - RGBA_Draw_Context *dc = (RGBA_Draw_Context *) context; - - p = dc->mul.col; - pp = (DATA8 *) & p; - *r = R_VAL(pp); - *g = G_VAL(pp); - *b = B_VAL(pp); - *a = A_VAL(pp); + Render_Engine *re; + re = (Render_Engine *) data; + *r = (int)(R_VAL(&((RGBA_Draw_Context *)context)->mul.col)); + *g = (int)(G_VAL(&((RGBA_Draw_Context *)context)->mul.col)); + *b = (int)(B_VAL(&((RGBA_Draw_Context *)context)->mul.col)); + *a = (int)(A_VAL(&((RGBA_Draw_Context *)context)->mul.col)); return dc->mul.use; } ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs