Dear. 

I found a bug about rectangle clipping.
It's happened on the only gl backend  (check the sample code.. super simple)


The rectangle would be clipped incorrectly, when you scroll it. 


I looked the evas but don't know proper solution now. 


The rectangle would be clipped with the gl ctx area
but the rectangle position would not be updated once the map is enabled.
So rectangle always rendered with the same position and same clipped size even 
it is scrolled.


Please someone look at it then fix if you can.


Thank you.


------------------------------------

-Regards, Hermet-
#include <Elementary.h>
#include <Eina.h>
#include <Evas.h>

void setup()
{
   Evas_Object *win, *sc, *ly, *o, *mb;

   //Window
   win = elm_win_add(NULL, "test", ELM_WIN_BASIC);
   elm_win_autodel_set(win, EINA_TRUE);

   //Rectangle
   o = evas_object_rectangle_add(evas_object_evas_get(win));
   evas_object_color_set(o, 255, 0, 255, 255);
   evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(win, o);
   evas_object_show(o);

   //Scroller
   sc = elm_scroller_add(win);
   evas_object_size_hint_weight_set(sc, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(sc, EVAS_HINT_FILL, EVAS_HINT_FILL);
   elm_scroller_policy_set(sc, ELM_SCROLLER_POLICY_OFF,
                           ELM_SCROLLER_POLICY_OFF);
   elm_scroller_bounce_set(sc, EINA_FALSE, EINA_TRUE);
   evas_object_resize(sc, 480, 400);
   evas_object_show(sc);

   mb = elm_mapbuf_add(win);
   elm_object_content_set(mb, ly);
   evas_object_size_hint_weight_set(mb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_size_hint_align_set(mb, EVAS_HINT_FILL, EVAS_HINT_FILL);
   elm_mapbuf_alpha_set(mb, EINA_TRUE);
   elm_mapbuf_enabled_set(mb, 1);
   evas_object_show(mb);

   elm_object_part_content_set(sc, NULL, mb);

   evas_object_resize(win, 480, 400);
   evas_object_show(win);
}

int main(int argc, char *argv[])
{
   elm_init(argc, argv);

   setup();

   elm_run();

   elm_shutdown();

   return 0;
}

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to