mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
WII: Fix check for whole width updates in copyRectToOverlay.
This commit is contained in:
parent
6792f4450b
commit
4b32d5de0e
@ -608,8 +608,8 @@ void OSystem_Wii::copyRectToOverlay(const void *buf, int pitch, int x,
|
||||
return;
|
||||
|
||||
uint16 *dst = _overlayPixels + (y * _overlayWidth + x);
|
||||
if (_overlayWidth == pitch && pitch == w) {
|
||||
memcpy(dst, src, h * w * sizeof(uint16));
|
||||
if (_overlayWidth == w && pitch == _overlayWidth * sizeof(uint16)) {
|
||||
memcpy(dst, src, h * pitch);
|
||||
} else {
|
||||
do {
|
||||
memcpy(dst, src, w * sizeof(uint16));
|
||||
|
Loading…
x
Reference in New Issue
Block a user