Whoops, just realized I typo'd.
This commit is contained in:
parent
b2cd5ef851
commit
40c388e01d
|
@ -71,10 +71,10 @@ void drawTextBackground(uiDrawContext *c, double x, double y, uiDrawTextLayout *
|
||||||
if (lend > end) // don't cross lines
|
if (lend > end) // don't cross lines
|
||||||
lend = end;
|
lend = end;
|
||||||
startx = uiDrawTextLayoutByteLocationInLine(layout, line, start);
|
startx = uiDrawTextLayoutByteLocationInLine(layout, line, start);
|
||||||
// TODO explain this
|
// TODO explain this; note the use of start with lend
|
||||||
endx = layoutwid;
|
endx = layoutwid;
|
||||||
if (!isSelection || end <= lend)
|
if (!isSelection || end <= lend)
|
||||||
endx = uiDrawTextLayoutByteLocationInLine(layout, line, end);
|
endx = uiDrawTextLayoutByteLocationInLine(layout, line, lend);
|
||||||
uiDrawTextLayoutLineGetMetrics(layout, line, &m);
|
uiDrawTextLayoutLineGetMetrics(layout, line, &m);
|
||||||
path = uiDrawNewPath(uiDrawFillModeWinding);
|
path = uiDrawNewPath(uiDrawFillModeWinding);
|
||||||
uiDrawPathAddRectangle(path,
|
uiDrawPathAddRectangle(path,
|
||||||
|
@ -84,6 +84,6 @@ void drawTextBackground(uiDrawContext *c, double x, double y, uiDrawTextLayout *
|
||||||
uiDrawFill(c, path, brush);
|
uiDrawFill(c, path, brush);
|
||||||
uiDrawFreePath(path);
|
uiDrawFreePath(path);
|
||||||
line++;
|
line++;
|
||||||
start += lend - start;
|
start = lend;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue