diff options
author | pierrejoye <none@none> | 2013-04-03 14:23:11 +0200 |
---|---|---|
committer | pierrejoye <none@none> | 2013-04-03 14:23:11 +0200 |
commit | e20413bf6b872a8c23f1704a89295c5897347c9d (patch) | |
tree | f34b5402f97cd826bb312e18677f3974d53bfd52 /examples/copyrotated.c | |
parent | 385566e4ba57d803921a13306ead66f354cee0a2 (diff) | |
download | libgd-e20413bf6b872a8c23f1704a89295c5897347c9d.tar.gz |
- apply same CS everywhere
Diffstat (limited to 'examples/copyrotated.c')
-rw-r--r-- | examples/copyrotated.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/copyrotated.c b/examples/copyrotated.c index 8bfdac2..03e493d 100644 --- a/examples/copyrotated.c +++ b/examples/copyrotated.c @@ -35,9 +35,9 @@ int savePngImage(gdImagePtr im, const char *name) int main(int argc, char **arg) { - gdImagePtr im, im2; - int new_width, new_height; - double angle, a2; + gdImagePtr im, im2; + int new_width, new_height; + double angle, a2; if (argc < 3) { fprintf(stderr, "Usage: copyrotated [angle in degree] [filename.png]\n"); @@ -61,9 +61,9 @@ int main(int argc, char **arg) a2 = angle * .0174532925; new_width = ceil(cos(a2) * gdImageSX(im)) + - fabs(sin(a2) * gdImageSY(im)); + fabs(sin(a2) * gdImageSY(im)); new_height = ceil(cos(a2) * gdImageSY(im)) + - fabs(sin(a2) * gdImageSX(im)); + fabs(sin(a2) * gdImageSX(im)); im2 = gdImageCreateTrueColor(new_width, new_height); |