Skip to content

Commit

Permalink
TITANIC: Resolve leftover signedness issues
Browse files Browse the repository at this point in the history
Resolves leftover signedness issues to conform to baccbed.
  • Loading branch information
BallM4788 committed Jul 8, 2021
1 parent 4a49579 commit 86bdfc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/titanic/support/avi_surface.cpp
Expand Up @@ -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 (uint 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 (uint 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);

Expand Down

0 comments on commit 86bdfc2

Please sign in to comment.