diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-11-09 10:45:53 -0500 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-11-09 10:48:47 -0500 |
commit | 464eded3a325944e0bbe643469eb01846bda040c (patch) | |
tree | 38438dbe1e0a359e1e97680f8470b40899344042 | |
parent | bc0ccf9ebb6d0eb18a4bf6ee935824f12da611d7 (diff) | |
download | enlightenment-464eded3a325944e0bbe643469eb01846bda040c.tar.gz |
handle e_scale correctly in bryces
-rw-r--r-- | src/bin/e_bryce.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c index f58613ea99..c321754098 100644 --- a/src/bin/e_bryce.c +++ b/src/bin/e_bryce.c @@ -106,18 +106,18 @@ _bryce_autohide_coords(Bryce *b, int *x, int *y) *x = b->x; if (an & E_GADGET_SITE_ANCHOR_TOP) - *y = oy - b->size + b->autohide_size; + *y = oy - (e_scale * b->size) + e_scale * (b->autohide_size); if (an & E_GADGET_SITE_ANCHOR_BOTTOM) - *y = oy + oh - b->autohide_size; + *y = oy + oh - (e_scale * b->autohide_size); } else if (b->orient == E_GADGET_SITE_ORIENT_VERTICAL) { *y = b->y; if (an & E_GADGET_SITE_ANCHOR_LEFT) - *x = ox - b->size + b->autohide_size; + *x = ox - (e_scale * b->size) + e_scale * (b->autohide_size); if (an & E_GADGET_SITE_ANCHOR_RIGHT) - *x = ox + ow - b->autohide_size; + *x = ox + ow - (e_scale * b->autohide_size); } } @@ -159,14 +159,14 @@ _bryce_position(Bryce *b, int w, int h, int *nx, int *ny) if (an & E_GADGET_SITE_ANCHOR_RIGHT) x = ox + ow - w; if (an & E_GADGET_SITE_ANCHOR_BOTTOM) - y = oy + oh - b->size; + y = oy + oh - (e_scale * b->size); if (!b->autosize) x = ox; } else if (b->orient == E_GADGET_SITE_ORIENT_VERTICAL) { if (an & E_GADGET_SITE_ANCHOR_RIGHT) - x = ox + ow - b->size; + x = ox + ow - (e_scale * b->size); if (an & E_GADGET_SITE_ANCHOR_BOTTOM) y = oy + oh - h; if (!b->autosize) @@ -1014,7 +1014,7 @@ e_bryce_add(Evas_Object *parent, const char *name, E_Gadget_Site_Orient orient, Bryce *b; b = E_NEW(Bryce, 1); - b->size = 48; + b->size = e_scale * 48; b->name = eina_stringshare_add(name); b->anchor = an; b->orient = orient; |