TITANIC: Resolve leftover signedness issues

Resolves leftover signedness issues to conform to baccbedf50.
This commit is contained in:
Michael Ball 2021-07-08 16:47:43 -05:00 committed by David Turner
parent 2a228ccfcd
commit abf9788d51

View File

@ -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);