Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/engines/evas_buffer Modified Files: ewl_engine_evas_buffer.c Log Message: Set the destination buffer row byte count. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/engines/evas_buffer/ewl_engine_evas_buffer.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_engine_evas_buffer.c 30 Sep 2006 20:53:30 -0000 1.1 +++ ewl_engine_evas_buffer.c 1 Oct 2006 01:19:09 -0000 1.2 @@ -108,6 +108,7 @@ bufinfo->info.depth_type = EVAS_ENGINE_BUFFER_DEPTH_ARGB32; bufinfo->info.dest_buffer = NULL; + bufinfo->info.dest_buffer_row_bytes = 0; bufinfo->info.use_color_key = 0; bufinfo->info.alpha_threshold = 0; bufinfo->info.func.new_update_region = NULL; @@ -151,8 +152,9 @@ o = EWL_OBJECT(emb); bufinfo = (Evas_Engine_Info_Buffer *)info; + bufinfo->info.dest_buffer_row_bytes = sizeof(int) * width; bufinfo->info.dest_buffer = realloc(bufinfo->info.dest_buffer, - width * height * 4 * sizeof(char)); + bufinfo->info.dest_buffer_row_bytes * height); evas_engine_info_set(evas, info); evas_output_size_set(evas, width, height); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs