--- np2/io/gdc.c 2005/05/20 13:59:47 1.38 +++ np2/io/gdc.c 2007/01/08 08:52:21 1.39 @@ -93,7 +93,7 @@ void gdc_setanalogpal(int color, int rgb event = palevent.event + palevent.events; event->clock = nevent.item[NEVENT_FLAMES].clock - (CPU_BASECLOCK - CPU_REMCLOCK); - event->color = (color * sizeof(RGB32)) + rgb; + event->color = (UINT16)((color * sizeof(RGB32)) + rgb); event->value = (UINT8)value; palevent.events++; }