Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: draw.c Log Message: Handle shape of small windows properly (e.g. shaded). =================================================================== RCS file: /cvs/e/e16/e/src/draw.c,v retrieving revision 1.102 retrieving revision 1.103 diff -u -3 -r1.102 -r1.103 --- draw.c 16 Jun 2007 11:16:17 -0000 1.102 +++ draw.c 17 Jun 2007 12:41:14 -0000 1.103 @@ -711,15 +711,16 @@ _ShapeSetBox(EObj * eo, int x, int y, int w, int h, int bl, int br, int bt, int bb, int seqno) { + XRectangle rl[8]; int w2, h2; w2 = w + bl + br; h2 = h + bt + bb; - XRectangle rl[8]; - _SHAPE_SET_RECT((&rl[0]), x, y, w2, h2); - _SHAPE_SET_RECT((&rl[4]), x + bl + 1, y + bt + 1, w - 2, h - 2); + w = (w > 5) ? w - 2 : 3; + h = (h > 5) ? h - 2 : 3; + _SHAPE_SET_RECT((&rl[4]), x + bl + 1, y + bt + 1, w, h); EShapeCombineRectangles(EobjGetWin(eo), ShapeBounding, 0, 0, rl, 8, (seqno == 0) ? ShapeSet : ShapeUnion, Unsorted); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs