cvs: php4 /ext/swf/ swf.c
| From: | Sterling Hughes | Date: | Sun, 11 Jun 2000 07:51:10 +0000 |
| Subject: | cvs: php4 /ext/swf/ swf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-158@lists.php.net to get a copy of this message | ||
sterling Sun Jun 11 00:51:10 2000 EDT
Modified files:
/php4/ext/swf swf.c
Log:
oops.
# P.s.: The current CVS is broken (virtual dir stuff), does anyone have
# an idea on when it will be fixed?
Index: php4/ext/swf/swf.c
diff -u php4/ext/swf/swf.c:1.17 php4/ext/swf/swf.c:1.18
--- php4/ext/swf/swf.c:1.17 Mon Jun 5 17:34:00 2000
+++ php4/ext/swf/swf.c Sun Jun 11 00:51:10 2000
@@ -16,13 +16,14 @@
+----------------------------------------------------------------------+
*/
-/* $Id: swf.c,v 1.17 2000/06/06 00:34:00 sterling Exp $ */
+/* $Id: swf.c,v 1.18 2000/06/11 07:51:10 sterling Exp $ */
#include "php.h"
#if HAVE_SWF
-#include "swf.h"
+#include <stdio.h>
+#include <swf.h>
#include "ext/standard/info.h"
#include "php_swf.h"
@@ -168,7 +169,7 @@
na = Z_STRVAL_PP(name);
- swf_openfile((strcasecmp("php://stdout", na)==0) ? stdout : na,
+ swf_openfile((strcasecmp("php://stdout", na)==0) ? fileno(stdout) : na,
(float)Z_DVAL_PP(sizeX), (float)Z_DVAL_PP(sizeY),
(float)Z_DVAL_PP(frameRate), (float)Z_DVAL_PP(r), (float)Z_DVAL_PP(g),
(float)Z_DVAL_PP(b));
}
@@ -463,10 +464,10 @@
if (opt) {
swf_defineline(Z_LVAL_PP(objid), (float)Z_DVAL_PP(x1), (float)Z_DVAL_PP(y1),
- (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)(Z_DVAL_PP(width));
+ (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)Z_DVAL_PP(width));
} else {
swf_definerect(Z_LVAL_PP(objid), (float)Z_DVAL_PP(x1), (float)Z_DVAL_PP(y1),
- (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)(Z_DVAL_PP(width));
+ (float)Z_DVAL_PP(x2), (float)Z_DVAL_PP(y2), (float)Z_DVAL_PP(width));
}
}