DIRECTOR: Fix warnings

This commit is contained in:
Eugene Sandulenko 2020-08-23 01:23:28 +02:00
parent 9a9c32f663
commit b438f6fb07
3 changed files with 4 additions and 4 deletions

View File

@ -180,7 +180,7 @@ void inkDrawPixel(int x, int y, int src, void *data) {
switch (p->ink) {
case kInkTypeBackgndTrans:
if (src == p->backColor)
if ((uint32)src == p->backColor)
break;
// fall through
case kInkTypeMatte:
@ -247,7 +247,7 @@ void inkDrawPixel(int x, int y, int src, void *data) {
break;
// Arithmetic ink types
default: {
if (src == p->colorWhite)
if ((uint32)src == p->colorWhite)
break;
byte rSrc, gSrc, bSrc;

View File

@ -303,7 +303,7 @@ void Window::inkBlitStretchSurface(DirectorPlotData *pd, Common::Rect &srcRect,
}
}
int Window::preprocessColor(DirectorPlotData *p, int src) {
int Window::preprocessColor(DirectorPlotData *p, uint32 src) {
// HACK: Right now this method is just used for adjusting the colourization on text
// sprites, as it would be costly to colourize the chunks on the fly each
// time a section needs drawing. It's ugly but mostly works.

View File

@ -185,7 +185,7 @@ private:
bool _titleVisible;
private:
int preprocessColor(DirectorPlotData *p, int src);
int preprocessColor(DirectorPlotData *p, uint32 src);
void inkBlitFrom(Channel *channel, Common::Rect destRect, Graphics::ManagedSurface *blitTo = nullptr);
void inkBlitShape(DirectorPlotData *pd, Common::Rect &srcRect);