diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-10-04 12:51:46 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-10-04 12:51:46 (GMT) |
commit | fb1b630ace75405ef2aa2c4518e3af2778944767 (patch) | |
tree | a5eecc9b8b157f20afc82ffdcab254da8d4d30a0 /src/gd-test.c | |
parent | 40b0701948751c40f2f5f5ed6b1d54143b2ed50c (diff) | |
download | mxe-fb1b630ace75405ef2aa2c4518e3af2778944767.zip mxe-fb1b630ace75405ef2aa2c4518e3af2778944767.tar.gz mxe-fb1b630ace75405ef2aa2c4518e3af2778944767.tar.bz2 |
improved coding style of the examples of packages gd and sdl_sound
Diffstat (limited to 'src/gd-test.c')
-rw-r--r-- | src/gd-test.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gd-test.c b/src/gd-test.c index 2d6be72..8d86e3d 100644 --- a/src/gd-test.c +++ b/src/gd-test.c @@ -7,14 +7,18 @@ #include <stdio.h> #include <stdlib.h> -int main() +int main(int argc, char *argv[]) { gdImagePtr im; FILE *fp; - int cor_rad = 400; + int cor_rad; + + (void)argc; + (void)argv; + + cor_rad = 400; im = gdImageCreateTrueColor(400, 400); gdImageFilledRectangle(im, 0, 0, 399, 399, 0x00FFFFFF); - gdImageFilledArc(im, cor_rad, 399 - cor_rad, cor_rad * 2, cor_rad * 2, 90, 180, 0x0, gdPie); fp = fopen("test-gd.png", "wb"); |