Commit a2e05bf4 authored by Sven Neumann's avatar Sven Neumann
Browse files

Finally it seems like Xach got it right.


--Sven
parent 092fb5a6
Sun Dec 20 23:34:37 MET 1998 Sven Neumann <sven@gimp.org>
* app/rect_select.c: another patch from Xach. Eek, I should have
waited for him to finish his changes, but it seems to work
correctly now.
Sat Dec 19 15:46:27 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* app/brush_edit.c:
......
......@@ -567,10 +567,20 @@ rect_select_motion (Tool *tool,
{
if (rect_sel->fixed_size)
{
rect_sel->x = ox - (w/2);
rect_sel->y = oy - (h/2);
rect_sel->w = w;
rect_sel->h = h;
if (mevent->state & GDK_SHIFT_MASK)
{
rect_sel->x = ox - w;
rect_sel->y = oy - h;
rect_sel->w = w * 2;
rect_sel->h = h * 2;
}
else
{
rect_sel->x = ox - w / 2;
rect_sel->y = oy - h / 2;
rect_sel->w = w;
rect_sel->h = h;
}
}
else
{
......
......@@ -567,10 +567,20 @@ rect_select_motion (Tool *tool,
{
if (rect_sel->fixed_size)
{
rect_sel->x = ox - (w/2);
rect_sel->y = oy - (h/2);
rect_sel->w = w;
rect_sel->h = h;
if (mevent->state & GDK_SHIFT_MASK)
{
rect_sel->x = ox - w;
rect_sel->y = oy - h;
rect_sel->w = w * 2;
rect_sel->h = h * 2;
}
else
{
rect_sel->x = ox - w / 2;
rect_sel->y = oy - h / 2;
rect_sel->w = w;
rect_sel->h = h;
}
}
else
{
......
......@@ -567,10 +567,20 @@ rect_select_motion (Tool *tool,
{
if (rect_sel->fixed_size)
{
rect_sel->x = ox - (w/2);
rect_sel->y = oy - (h/2);
rect_sel->w = w;
rect_sel->h = h;
if (mevent->state & GDK_SHIFT_MASK)
{
rect_sel->x = ox - w;
rect_sel->y = oy - h;
rect_sel->w = w * 2;
rect_sel->h = h * 2;
}
else
{
rect_sel->x = ox - w / 2;
rect_sel->y = oy - h / 2;
rect_sel->w = w;
rect_sel->h = h;
}
}
else
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment