Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ewin-ops.c
Log Message:
Fix bad window sizing during unshade.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewin-ops.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -3 -r1.55 -r1.56
--- ewin-ops.c 16 Jul 2005 16:57:40 -0000 1.55
+++ ewin-ops.c 23 Jul 2005 15:20:54 -0000 1.56
@@ -1120,6 +1120,8 @@
{
w = ((a * (1024 - k)) + (b * k)) >> 10;
ww = w - a;
+ if (ww <= 0)
+ ww = 1;
EMoveResizeWindow(ewin->win_container,
ewin->border->border.left,
ewin->border->border.top,
@@ -1157,6 +1159,8 @@
w = ((a * (1024 - k)) + (b * k)) >> 10;
x = c - w;
ww = w - a;
+ if (ww <= 0)
+ ww = 1;
EMoveResizeWindow(ewin->win_container,
ewin->border->border.left,
ewin->border->border.top,
@@ -1192,6 +1196,8 @@
{
h = ((a * (1024 - k)) + (b * k)) >> 10;
hh = h - a;
+ if (hh <= 0)
+ hh = 1;
EMoveResizeWindow(ewin->win_container,
ewin->border->border.left,
ewin->border->border.top,
@@ -1229,6 +1235,8 @@
h = ((a * (1024 - k)) + (b * k)) >> 10;
y = c - h;
hh = h - a;
+ if (hh <= 0)
+ hh = 1;
EMoveResizeWindow(ewin->win_container,
ewin->border->border.left,
ewin->border->border.top,
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs