mirror of
https://github.com/reactos/reactos.git
synced 2024-09-05 10:17:16 +00:00
Don't draw 0-width HLine
svn path=/trunk/; revision=16247
This commit is contained in:
parent
7143bd0824
commit
f887cf0f05
|
@ -420,7 +420,9 @@ EngLineTo(SURFOBJ *DestObj,
|
||||||
{
|
{
|
||||||
if (y1 < RectEnum.arcl[i].bottom + Translate.y &&
|
if (y1 < RectEnum.arcl[i].bottom + Translate.y &&
|
||||||
RectEnum.arcl[i].left + Translate.x <= hx + deltax &&
|
RectEnum.arcl[i].left + Translate.x <= hx + deltax &&
|
||||||
hx < RectEnum.arcl[i].right + Translate.x)
|
hx < RectEnum.arcl[i].right + Translate.x &&
|
||||||
|
max(hx, RectEnum.arcl[i].left + Translate.x) <
|
||||||
|
min(hx + deltax, RectEnum.arcl[i].right + Translate.x))
|
||||||
{
|
{
|
||||||
DibFunctionsForBitmapFormat[OutputObj->iBitmapFormat].DIB_HLine(
|
DibFunctionsForBitmapFormat[OutputObj->iBitmapFormat].DIB_HLine(
|
||||||
OutputObj,
|
OutputObj,
|
||||||
|
|
Loading…
Reference in a new issue