CSSBorder fix: width/height swapped

This commit is contained in:
Thomas Geymayer
2013-07-06 12:05:19 +02:00
parent 948db69cc9
commit 757ba03918
2 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ namespace simgear
{
ret.val[i] = offsets.val[i];
if( !types.rel[i] )
ret.val[i] /= (i & 1) ? dim.height() : dim.width();
ret.val[i] /= (i & 1) ? dim.width() : dim.height();
}
return ret;
@@ -75,7 +75,7 @@ namespace simgear
{
ret.val[i] = offsets.val[i];
if( types.rel[i] )
ret.val[i] *= (i & 1) ? dim.height() : dim.width();
ret.val[i] *= (i & 1) ? dim.width() : dim.height();
}
return ret;