mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
TITANIC: Resolve leftover signedness issues
Resolves leftover signedness issues to conform to baccbedf50
.
This commit is contained in:
parent
2a228ccfcd
commit
abf9788d51
@ -328,11 +328,11 @@ void AVISurface::copyMovieFrame(const Graphics::Surface &src, Graphics::ManagedS
|
||||
assert(src.format.bytesPerPixel == 4 && dest.format.bytesPerPixel == 2);
|
||||
uint16 transPixel = _videoSurface->getTransparencyColor();
|
||||
|
||||
for (int y = 0; y < MIN(src.h, dest.h); ++y) {
|
||||
for (uint y = 0; y < (uint)MIN(src.h, dest.h); ++y) {
|
||||
const uint32 *pSrc = (const uint32 *)src.getBasePtr(0, y);
|
||||
uint16 *pDest = (uint16 *)dest.getBasePtr(0, y);
|
||||
|
||||
for (int x = 0; x < MIN(src.w, dest.w); ++x, ++pSrc, ++pDest) {
|
||||
for (uint x = 0; x < (uint)MIN(src.w, dest.w); ++x, ++pSrc, ++pDest) {
|
||||
src.format.colorToARGB(*pSrc, a, r, g, b);
|
||||
assert(a == 0 || a == 0xff);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user