mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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
|
@ -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