DrawDashedSides now used the correct height and width for the right and bottom

This commit is contained in:
dcone%netscape.com 1999-11-15 15:33:25 +00:00
Родитель a324ea0624
Коммит dee8f4a5a5
2 изменённых файлов: 22 добавлений и 4 удалений

Просмотреть файл

@ -809,7 +809,11 @@ PRBool skippedSide = PR_FALSE;
bSolid = PR_FALSE;
// This is our dot or dash..
dashRect.width = borderInside.x - borderOutside.x;
if(whichSide==NS_SIDE_LEFT){
dashRect.width = borderInside.x - borderOutside.x;
} else {
dashRect.width = borderOutside.XMost() - borderInside.XMost();
}
if( dashRect.width >0 ) {
dashRect.height = dashRect.width * dashLength;
dashRect.y = borderOutside.y;
@ -870,7 +874,12 @@ PRBool skippedSide = PR_FALSE;
bSolid = PR_FALSE;
// This is our dot or dash..
dashRect.height = borderInside.y - borderOutside.y;
if(whichSide==NS_SIDE_TOP){
dashRect.height = borderInside.y - borderOutside.y;
} else {
dashRect.height = borderOutside.YMost() - borderInside.YMost();
}
if( dashRect.height >0 ) {
dashRect.width = dashRect.height * dashLength;
dashRect.x = borderOutside.x;

Просмотреть файл

@ -809,7 +809,11 @@ PRBool skippedSide = PR_FALSE;
bSolid = PR_FALSE;
// This is our dot or dash..
dashRect.width = borderInside.x - borderOutside.x;
if(whichSide==NS_SIDE_LEFT){
dashRect.width = borderInside.x - borderOutside.x;
} else {
dashRect.width = borderOutside.XMost() - borderInside.XMost();
}
if( dashRect.width >0 ) {
dashRect.height = dashRect.width * dashLength;
dashRect.y = borderOutside.y;
@ -870,7 +874,12 @@ PRBool skippedSide = PR_FALSE;
bSolid = PR_FALSE;
// This is our dot or dash..
dashRect.height = borderInside.y - borderOutside.y;
if(whichSide==NS_SIDE_TOP){
dashRect.height = borderInside.y - borderOutside.y;
} else {
dashRect.height = borderOutside.YMost() - borderInside.YMost();
}
if( dashRect.height >0 ) {
dashRect.width = dashRect.height * dashLength;
dashRect.x = borderOutside.x;