raster pushed a commit to branch master.
commit 9b8f67ec4d472eb76345acf766cfaa8f7c25d2be
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Fri Aug 9 22:06:12 2013 +0900
evas - minor visual fixup with impossible border scaling to be more sensible
---
src/lib/evas/canvas/evas_object_image.c | 29 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/src/lib/evas/canvas/evas_object_image.c
b/src/lib/evas/canvas/evas_object_image.c
index fb34549..4ef3831 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -3967,25 +3967,25 @@ evas_object_image_render(Evas_Object *eo_obj,
Evas_Object_Protected_Data *obj, v
br = o->cur->border.r;
bt = o->cur->border.t;
bb = o->cur->border.b;
- if ((bl + br) > iw)
+ if ((bl + br) > imagew)
{
- bl = iw / 2;
- br = iw - bl;
+ bl = imagew / 2;
+ br = imagew - bl;
}
- if ((bl + br) > imw)
+ if ((bl + br) > imagew)
{
- bl = imw / 2;
- br = imw - bl;
+ bl = imagew / 2;
+ br = imagew - bl;
}
- if ((bt + bb) > ih)
+ if ((bt + bb) > imageh)
{
- bt = ih / 2;
- bb = ih - bt;
+ bt = imageh / 2;
+ bb = imageh - bt;
}
- if ((bt + bb) > imh)
+ if ((bt + bb) > imageh)
{
- bt = imh / 2;
- bb = imh - bt;
+ bt = imageh / 2;
+ bb = imageh - bt;
}
if (o->cur->border.scale != 1.0)
{
@@ -4053,6 +4053,11 @@ evas_object_image_render(Evas_Object *eo_obj,
Evas_Object_Protected_Data *obj, v
inw = br; inh = imh - bt - bb;
outx = ox + iw - bsr; outy = oy + bst;
outw = bsr; outh = ih - bst - bsb;
+ if (br == 80)
+ {
+ printf("%i %i %ix%i -> %i %i %ix%i\n",
+ inx, iny, inw, inh, outx, outy, outw,
outh);
+ }
_draw_image(obj, output, context, surface, pixels,
inx, iny, inw, inh, outx, outy, outw, outh, o->cur->smooth_scale, do_async);
// |
// #--
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk