summaryrefslogtreecommitdiff
path: root/test/polystar.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-01-22 23:20:06 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-01-22 23:20:06 +0000
commitf6c7cb873e7998ff0641131bba57c0f83e53b938 (patch)
treeab2d3fd958ab4057bc3541450dbb101d87607583 /test/polystar.c
parentec0a1adadf3c64957c8f7d529c6bdbf3fa037dd8 (diff)
downloadlibnsfb-f6c7cb873e7998ff0641131bba57c0f83e53b938.tar.gz
libnsfb-f6c7cb873e7998ff0641131bba57c0f83e53b938.tar.bz2
add basic (but working) path support
svn path=/trunk/libnsfb/; revision=9865
Diffstat (limited to 'test/polystar.c')
-rw-r--r--test/polystar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/polystar.c b/test/polystar.c
index 25b1f42..6963cfb 100644
--- a/test/polystar.c
+++ b/test/polystar.c
@@ -62,6 +62,7 @@ int main(int argc, char **argv)
pen.stroke_colour = 0xff000000;
pen.stroke_type = NFSB_PLOT_OPTYPE_SOLID;
+
for (rotate =0; rotate < (2 * M_PI); rotate += (M_PI / 8)) {
/* claim the whole screen for update */
nsfb_claim(nsfb, &box);
@@ -70,7 +71,7 @@ int main(int argc, char **argv)
radius = (box.y1 / 2);
- for (sides = 10; sides >=9; sides-=2) {
+ for (sides = 18; sides >=9; sides-=2) {
points = malloc(sizeof(nsfb_point_t) * sides);
for (loop = 0; loop < sides;loop+=2) {