Enlightenment CVS committal Author : barbieri Project : e17 Module : proto/epdf
Dir : e17/proto/epdf/src/bin Modified Files: epdf_esmart_test.c Log Message: Add black background, avoid garbage on screen. =================================================================== RCS file: /cvs/e/e17/proto/epdf/src/bin/epdf_esmart_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- epdf_esmart_test.c 16 Apr 2006 22:28:42 -0000 1.2 +++ epdf_esmart_test.c 15 Nov 2007 05:04:20 -0000 1.3 @@ -17,7 +17,7 @@ { Ecore_Evas *ee; Evas *evas; - Evas_Object *o; + Evas_Object *o, *bg; char *filename; int page_number; @@ -52,6 +52,12 @@ evas = ecore_evas_get(ee); + bg = evas_object_rectangle_add(evas); + evas_object_color_set(bg, 0, 0, 0, 255); + evas_object_resize(bg, 600, 850); + evas_object_show(bg); + ecore_evas_data_set(ee, "bg", bg); + o = esmart_pdf_add (evas); if (!esmart_pdf_init (o)) { ecore_evas_shutdown (); @@ -79,10 +85,12 @@ { Evas_Coord w, h; Evas *evas; + Evas_Object *bg; evas = ecore_evas_get(ee); evas_output_viewport_get(evas, NULL, NULL, &w, &h); -/* bg_resize(w, h); */ + bg = ecore_evas_data_get(ee, "bg"); + evas_object_resize(bg, w, h); } static int ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs