Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37653096
en ru br
Репозитории ALT
S:1.3.3-alt5.qa1
5.1: 1.3.3-alt5
4.1: 1.3.3-alt4
4.0: 1.3.3-alt4
3.0: 1.3.3-alt2
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: hermes

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: Hermes-1.3.3-64bit.patch
Скачать


--- 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]|
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin