summarylogtreecommitdiffstats
path: root/02_64-bit_JESS_fix.patch
blob: 1d7f99e566d84c592cfd118c469c87388e168d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff -Nur libvisual-plugins-0.4.0/plugins/actor/JESS/renderer.c libvisual-plugins-0.4.0.new/plugins/actor/JESS/renderer.c
--- libvisual-plugins-0.4.0/plugins/actor/JESS/renderer.c	2006-02-06 05:47:26.000000000 +1100
+++ libvisual-plugins-0.4.0.new/plugins/actor/JESS/renderer.c	2007-07-04 18:12:58.000000000 +1000
@@ -282,7 +282,7 @@
 
 void render_deformation(JessPrivate *priv, int defmode)
 {
-	uint32_t bmax;
+	intptr_t bmax;
 	uint32_t *tab1 = NULL, *tab2, *tab3, *tab4, i;
 	uint8_t *pix = priv->pixel, *buf = priv->buffer, *aux;
 
@@ -294,7 +294,7 @@
 		tab2 = priv->table2;
 		tab3 = priv->table3;
 		tab4 = priv->table4;
-		bmax = priv->resx * priv->resy + (uint32_t) priv->pixel;
+		bmax = priv->resx * priv->resy + (intptr_t) priv->pixel;
 
 		switch(defmode)
 		{
@@ -352,7 +352,7 @@
 		}
 		for (i = 0; i < priv->resy * priv->resx; i++)
 		{
-			aux  =  (uint8_t *) ((*(tab1) << 2 ) + (uint32_t) priv->buffer);
+			aux  =  (uint8_t *) ((*(tab1) << 2 ) + (intptr_t) priv->buffer);
 			*(pix++) = *(aux++) ;
 			*(pix++) = *(aux++);  
 			*(pix++) = *(aux);  
@@ -373,7 +373,8 @@
 	/* j'ai mis pixel par defaut... */
 
 	uint8_t *pix = priv->pixel;
-	uint32_t bmax,pitch_4;
+	intptr_t bmax;
+	uint32_t pitch_4;
 	
 	pix = priv->pixel;
 	if (priv->pixel == NULL)
@@ -387,7 +388,7 @@
 	if (priv->video == 8)
 	{
 		if (visual_cpu_get_mmx ()) {
-			bmax = priv->resx * (priv->resy-1) + (uint32_t) priv->pixel;
+			bmax = priv->resx * (priv->resy-1) + (intptr_t) priv->pixel;
 #if defined(VISUAL_ARCH_X86) || defined(VISUAL_ARCH_X86_64)
 			__asm __volatile
 				("\n\t pxor %%mm6, %%mm6"
@@ -423,7 +424,7 @@
 	else
 	{
 		pitch_4 = priv->pitch+4;
-		bmax = priv->pitch*(priv->resy-1) + (uint32_t) priv->pixel;
+		bmax = priv->pitch*(priv->resy-1) + (intptr_t) priv->pixel;
 
 		if (visual_cpu_get_mmx ()) {
 #if defined(VISUAL_ARCH_X86) || defined(VISUAL_ARCH_X86_64)