diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-11-26 14:36:31 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-11-26 14:36:31 +0000 |
commit | 0fa0bbc5eb01b6e426e04c1f4e7f436a3a93ac6b (patch) | |
tree | df1cc3771fa25ce9609a674665f2cb0b830ccb9d | |
parent | 2ab872817beb0c3d12371654d734af6798141a0b (diff) | |
download | zetacomponents-graph-0fa0bbc5eb01b6e426e04c1f4e7f436a3a93ac6b.zip zetacomponents-graph-0fa0bbc5eb01b6e426e04c1f4e7f436a3a93ac6b.tar.gz |
- Fixed rendering of filled circles in flash driver
# Also fixed broken comparision image
-rw-r--r-- | src/driver/flash.php | 10 | ||||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf | bin | 443 -> 443 bytes |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/driver/flash.php b/src/driver/flash.php index ae86057..9aba002 100644 --- a/src/driver/flash.php +++ b/src/driver/flash.php @@ -844,11 +844,6 @@ class ezcGraphFlashDriver extends ezcGraphDriver $shape = new SWFShape(); $this->setShapeColor( $shape, $color, 1, $filled ); - $shape->movePenTo( - $this->modifyCoordinate( $center->x + $width / 2 ), - $this->modifyCoordinate( $center->y ) - ); - // Reduce size if ( !$filled ) { @@ -856,6 +851,11 @@ class ezcGraphFlashDriver extends ezcGraphDriver $height -= 1; } + $shape->movePenTo( + $this->modifyCoordinate( $center->x + $width / 2 ), + $this->modifyCoordinate( $center->y ) + ); + // @TODO: User SWFShape::curveTo for ( $angle = $this->options->circleResolution; $angle <= 360; $angle += $this->options->circleResolution ) { diff --git a/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf Binary files differindex 1d17c9e..7a3ca52 100644 --- a/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf |