fix remip for some border cases in editing

some cases need a little more area remipped - and in edit mode, we don't
need to be stingy
This commit is contained in:
ac-stef
2017-07-19 21:00:27 +02:00
parent 00ba55ecac
commit 58ff110908
3 changed files with 15 additions and 8 deletions
+10
View File
@@ -116,6 +116,16 @@ void remipmore(const block &b, int level)
remip(bb, level);
}
void remipgenerous(const block &b)
{
block bb = b;
if(bb.x>1) bb.x--;
if(bb.y>1) bb.y--;
bb.xs = min(ssize - bb.x - 1, bb.xs + 2);
bb.ys = min(ssize - bb.y - 1, bb.ys + 2);
remip(bb);
}
static int clentsel = 0, clenttype = NOTUSED, pinnedent = -1;
bool pinnedclosestent = false, pointingatents = false;