author | rubidium |
Thu, 06 Dec 2007 20:55:48 +0000 | |
changeset 8023 | 0753dcefda8f |
parent 8022 | 3b4f24a14ace |
child 8024 | 5feb155012fe |
src/window.cpp | file | annotate | diff | comparison | revisions |
--- a/src/window.cpp Thu Dec 06 20:48:15 2007 +0000 +++ b/src/window.cpp Thu Dec 06 20:55:48 2007 +0000 @@ -2197,8 +2197,11 @@ default: left = w->left; if (left + (w->width >> 1) >= neww) left = neww - w->width; + if (left < 0) left = 0; + top = w->top; if (top + (w->height >> 1) >= newh) top = newh - w->height; + if (top < 0) top = 0; break; }