mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Don't draw 0-width HLine
svn path=/trunk/; revision=16247
This commit is contained in:
parent
7143bd0824
commit
f887cf0f05
1 changed files with 11 additions and 9 deletions
|
@ -418,16 +418,18 @@ EngLineTo(SURFOBJ *DestObj,
|
||||||
EnumMore = CLIPOBJ_bEnum(Clip, (ULONG) sizeof(RectEnum), (PVOID) &RectEnum);
|
EnumMore = CLIPOBJ_bEnum(Clip, (ULONG) sizeof(RectEnum), (PVOID) &RectEnum);
|
||||||
for (i = 0; i < RectEnum.c && RectEnum.arcl[i].top + Translate.y <= y1; i++)
|
for (i = 0; i < RectEnum.c && RectEnum.arcl[i].top + Translate.y <= y1; i++)
|
||||||
{
|
{
|
||||||
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) <
|
||||||
DibFunctionsForBitmapFormat[OutputObj->iBitmapFormat].DIB_HLine(
|
min(hx + deltax, RectEnum.arcl[i].right + Translate.x))
|
||||||
|
{
|
||||||
|
DibFunctionsForBitmapFormat[OutputObj->iBitmapFormat].DIB_HLine(
|
||||||
OutputObj,
|
OutputObj,
|
||||||
max(hx, RectEnum.arcl[i].left + Translate.x),
|
max(hx, RectEnum.arcl[i].left + Translate.x),
|
||||||
min(hx + deltax, RectEnum.arcl[i].right + Translate.x),
|
min(hx + deltax, RectEnum.arcl[i].right + Translate.x),
|
||||||
y1, Pixel);
|
y1, Pixel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (EnumMore);
|
while (EnumMore);
|
||||||
|
|
Loading…
Reference in a new issue