mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-11 10:30:09 +00:00
- added a condition if (depth <= 8) before copying more than two bytes
This commit is contained in:
parent
3f7747a724
commit
8aab66f024
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user