- added a condition if (depth <= 8) before copying more than two bytes

This commit is contained in:
gbeauche 2000-09-23 06:51:46 +00:00
parent 3f7747a724
commit 8aab66f024

View File

@ -43,6 +43,10 @@ static void FB_FUNC_NAME(uint8 * dest, const uint8 * source, uint32 length)
// source and dest are mutually aligned
uint16 * swp = ((uint16 *)source);
uint16 * dwp = ((uint16 *) dest );
#if FB_DEPTH <= 8
if (length >= 2) {
#endif
#if FB_DEPTH <= 16
// Align source and dest to 32-bit word boundaries
@ -83,6 +87,10 @@ static void FB_FUNC_NAME(uint8 * dest, const uint8 * source, uint32 length)
FB_BLIT_1(*d, *s);
}
#endif
#if FB_DEPTH <= 8
}
#endif
}
#undef FB_FUNC_NAME