libvisual-plugins/libvisual-plugins-0.4.0-64bit.patch
Silvan Calarco a2ea965be3 rebuilt from a source package splitted by libvisual
added patchset from sources.gentoo.org/cgi-bin/viewvc.cgi/src/patchsets/libvisual-plugins/0.4.0 [release 0.4.0-4mamba;Tue Dec 14 2010]
2024-01-06 06:04:33 +01:00

58 lines
1.7 KiB
Diff

--- libvisual-plugins-0.4.0/plugins/actor/JESS/renderer.c~ 2006-02-05 18:47:26.000000000 +0000
+++ libvisual-plugins-0.4.0/plugins/actor/JESS/renderer.c 2006-12-25 21:01:28.000000000 +0000
@@ -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)