mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
DIRECTOR: Fix warnings
This commit is contained in:
parent
9a9c32f663
commit
b438f6fb07
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user