Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > 3aa4391378a2b6fbdc2bcf7307505b7c > files > 1

hermes-1.3.3-alt4.src.rpm

--- Hermes-1.3.3/src/c_genrc_ao_blit.c~	2006-07-23 21:20:29.000000000 +0200
+++ Hermes-1.3.3/src/c_genrc_ao_blit.c	2006-07-23 21:20:29.000000000 +0200
@@ -24,8 +24,8 @@
 // **************************************************
 
 void ConvertC_Generic32_A_Generic32_O_Blit(HermesConverterInterface *iface)
-{	unsigned long s_pixel, d_pixel, r, g, b, a;
-	long sr, sg, sb, dr, dg, db, da;
+{	unsigned int s_pixel, d_pixel, r, g, b, a;
+	int sr, sg, sb, dr, dg, db, da;
 	char8 *source = iface->s_pixels, *dest = iface->d_pixels;
 	unsigned int count;
 	float sa;
@@ -101,8 +101,8 @@
 }
 
 void ConvertC_Generic32_A_Generic24_O_Blit(HermesConverterInterface *iface)
-{ unsigned long s_pixel, d_pixel, r, g, b, a;
-  long sr, sg, sb, dr, dg, db, da;
+{ unsigned int s_pixel, d_pixel, r, g, b, a;
+  int sr, sg, sb, dr, dg, db, da;
   float sa;
   char8 *d_ptr=(char8 *)(&s_pixel);
   unsigned int count;
--- Hermes-1.3.3/src/d_32.c~	2006-07-23 22:06:51.000000000 +0200
+++ Hermes-1.3.3/src/d_32.c	2006-07-23 22:06:51.000000000 +0200
@@ -26,7 +26,7 @@
     count=iface->d_width;
 
     /* Check first pixel alignment, correct if necessary */
-    if (((unsigned int)iface->d_pixels)&1) {
+    if (((unsigned long)iface->d_pixels)&1) {
       WRITE16(dest,
 	    DitherTab_r565_44[count&0x3][y&0x3][(*((int32*)source)>>16)&0xff]|
 	    DitherTab_g565_44[count&0x3][y&0x3][(*((int32*)source)>>8)&0xff]|