diff --git a/BasiliskII/src/Unix/video_blit.h b/BasiliskII/src/Unix/video_blit.h index e9126edd..e6b218fa 100644 --- a/BasiliskII/src/Unix/video_blit.h +++ b/BasiliskII/src/Unix/video_blit.h @@ -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