| 1 |
--- Hermes-1.3.3/src/c_genrc_ao_blit.c~ 2006-07-23 21:20:29.000000000 +0200
|
| 2 |
+++ Hermes-1.3.3/src/c_genrc_ao_blit.c 2006-07-23 21:20:29.000000000 +0200
|
| 3 |
@@ -24,8 +24,8 @@
|
| 4 |
// **************************************************
|
| 5 |
|
| 6 |
void ConvertC_Generic32_A_Generic32_O_Blit(HermesConverterInterface *iface)
|
| 7 |
-{ unsigned long s_pixel, d_pixel, r, g, b, a;
|
| 8 |
- long sr, sg, sb, dr, dg, db, da;
|
| 9 |
+{ unsigned int s_pixel, d_pixel, r, g, b, a;
|
| 10 |
+ int sr, sg, sb, dr, dg, db, da;
|
| 11 |
char8 *source = iface->s_pixels, *dest = iface->d_pixels;
|
| 12 |
unsigned int count;
|
| 13 |
float sa;
|
| 14 |
@@ -101,8 +101,8 @@
|
| 15 |
}
|
| 16 |
|
| 17 |
void ConvertC_Generic32_A_Generic24_O_Blit(HermesConverterInterface *iface)
|
| 18 |
-{ unsigned long s_pixel, d_pixel, r, g, b, a;
|
| 19 |
- long sr, sg, sb, dr, dg, db, da;
|
| 20 |
+{ unsigned int s_pixel, d_pixel, r, g, b, a;
|
| 21 |
+ int sr, sg, sb, dr, dg, db, da;
|
| 22 |
float sa;
|
| 23 |
char8 *d_ptr=(char8 *)(&s_pixel);
|
| 24 |
unsigned int count;
|
| 25 |
--- Hermes-1.3.3/src/d_32.c~ 2006-07-23 22:06:51.000000000 +0200
|
| 26 |
+++ Hermes-1.3.3/src/d_32.c 2006-07-23 22:06:51.000000000 +0200
|
| 27 |
@@ -26,7 +26,7 @@
|
| 28 |
count=iface->d_width;
|
| 29 |
|
| 30 |
/* Check first pixel alignment, correct if necessary */
|
| 31 |
- if (((unsigned int)iface->d_pixels)&1) {
|
| 32 |
+ if (((unsigned long)iface->d_pixels)&1) {
|
| 33 |
WRITE16(dest,
|
| 34 |
DitherTab_r565_44[count&0x3][y&0x3][(*((int32*)source)>>16)&0xff]|
|
| 35 |
DitherTab_g565_44[count&0x3][y&0x3][(*((int32*)source)>>8)&0xff]|
|