Accepting request 212283 from graphics

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/212283
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gd?expand=0&rev=29
This commit is contained in:
Stephan Kulow
2013-12-26 16:36:49 +00:00
committed by Git OBS Bridge
parent 45195ac482
commit d7f3d21394
13 changed files with 108 additions and 169 deletions

View File

@@ -1,28 +1,30 @@
--- fontwheeltest.c 2004-10-27 14:22:04.000000000 +0000
+++ fontwheeltest.c 2005-11-24 10:45:11.000000000 +0000
@@ -34,6 +34,8 @@
Index: src/fontwheeltest.c
===================================================================
--- src/fontwheeltest.c.orig 2013-12-18 11:49:47.041577398 +0100
+++ src/fontwheeltest.c 2013-12-18 11:53:52.575496376 +0100
@@ -32,6 +32,8 @@
doerr (err, "------------------------------------------");
for (curang = 0.0; curang < 360.0; curang += angle)
{
+ gdPoint points[4];
for (curang = 0.0; curang < 360.0; curang += angle) {
+ gdPoint points[4];
+
curangrads = DEGTORAD(curang);
x0 = x + cos (curangrads) * offset;
y0 = y - sin (curangrads) * offset;
@@ -49,7 +51,15 @@
if (cp)
doerr (err, cp);
curangrads = DEGTORAD(curang);
x0 = x + cos (curangrads) * offset;
y0 = y - sin (curangrads) * offset;
@@ -47,7 +49,15 @@
if (cp)
doerr (err, cp);
- gdImagePolygon (im, (gdPointPtr)brect, 4, color);
+ points[0].x = brect[0];
+ points[0].y = brect[1];
+ points[1].x = brect[2];
+ points[1].y = brect[3];
+ points[2].x = brect[4];
+ points[2].y = brect[5];
+ points[3].x = brect[6];
+ points[3].y = brect[7];
+ gdImagePolygon (im, points, 4, color);
}
- gdImagePolygon (im, (gdPointPtr)brect, 4, color);
+ points[0].x = brect[0];
+ points[0].y = brect[1];
+ points[1].x = brect[2];
+ points[1].y = brect[3];
+ points[2].x = brect[4];
+ points[2].y = brect[5];
+ points[3].x = brect[6];
+ points[3].y = brect[7];
+ gdImagePolygon (im, points, 4, color);
}
fclose (err);
fclose (err);