Add some patches to fix the build on 4.x.

Submitted by:	vs
This commit is contained in:
Koop Mast 2005-10-20 15:28:13 +00:00
parent 7251e51710
commit b0d42937fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145946
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- plugins/actor/gdkpixbuf/actor_gdkpixbuf.c.orig Thu Oct 20 11:07:30 2005
+++ plugins/actor/gdkpixbuf/actor_gdkpixbuf.c Thu Oct 20 11:08:06 2005
@@ -98,7 +98,7 @@ const VisPluginInfo *get_plugin_info (in
int act_gdkpixbuf_init (VisPluginData *plugin)
{
PixbufPrivate *priv;
- VisParamContainer *paramcontainer = visual_plugin_get_params (plugin);;
+ VisParamContainer *paramcontainer = visual_plugin_get_params (plugin);
static const VisParamEntry params[] = {
VISUAL_PARAM_LIST_ENTRY_STRING ("filename", ""),

View file

@ -0,0 +1,24 @@
--- plugins/actor/pseudotoad_flower/notch.c.orig
+++ plugins/actor/pseudotoad_flower/notch.c
@@ -23,6 +23,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <math.h>
#include <string.h>
@@ -30,9 +31,10 @@
NOTCH_FILTER * init_notch(float cutoff) {
NOTCH_FILTER * l=malloc(sizeof(NOTCH_FILTER));
- float steep = 0.99;;
- float r = steep * 0.99609375;
- float f = cos(M_PI * cutoff / SAMPLING_RATE);
+ float steep = 0.99;
+ float r,f;
+ r = steep * 0.99609375;
+ f = cos(M_PI * cutoff / SAMPLING_RATE);
l->cutoff = cutoff;
l->a0 = (1 - r) * sqrt( r * (r - 4 * (f * f) + 2) + 1);
l->b1 = 2 * f * r;

View file

@ -0,0 +1,9 @@
--- plugins/actor/dancingparticles/parameters.cpp.orig
+++ plugins/actor/dancingparticles/parameters.cpp
@@ -1,5 +1,6 @@
#include <iostream>
#include "etoile.h"
+#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include "t1font.h"