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