diff options
author | D G Turner | 2019-09-30 04:41:54 +0100 |
---|---|---|
committer | D G Turner | 2019-09-30 04:41:54 +0100 |
commit | 75ee80cf1e2cbafff6523cc0a7c1376315959ab8 (patch) | |
tree | c871d2d326b8df24f0faa048aafaf9fdaaa9b718 /engines/sludge | |
parent | cefad7a5d0095e97b2a5cadef684086c53f18adb (diff) | |
download | scummvm-rg350-75ee80cf1e2cbafff6523cc0a7c1376315959ab8.tar.gz scummvm-rg350-75ee80cf1e2cbafff6523cc0a7c1376315959ab8.tar.bz2 scummvm-rg350-75ee80cf1e2cbafff6523cc0a7c1376315959ab8.zip |
SLUDGE: Fix Some MSVC Warnings
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/backdrop.cpp | 2 | ||||
-rw-r--r-- | engines/sludge/sprites.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp index 610a84a2a4..dfb570fb3f 100644 --- a/engines/sludge/backdrop.cpp +++ b/engines/sludge/backdrop.cpp @@ -388,7 +388,7 @@ bool GraphicsManager::loadLightMap(int v) { if (_lightMapMode == LIGHTMAPMODE_HOTSPOT) { return fatal("Light map width and height don't match scene width and height. That is required for lightmaps in HOTSPOT mode."); } else if (_lightMapMode == LIGHTMAPMODE_PIXEL) { - tmp.blit(_lightMap, 0, 0, Graphics::FLIP_NONE, nullptr, TS_ARGB(255, 255, 255, 255), _sceneWidth, _sceneHeight); + tmp.blit(_lightMap, 0, 0, Graphics::FLIP_NONE, nullptr, TS_ARGB(255, 255, 255, 255), (int)_sceneWidth, (int)_sceneHeight); } else { _lightMap.copyFrom(tmp); } diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index a7f82de0a8..e7d0005ade 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -339,7 +339,7 @@ void GraphicsManager::blendColor(Graphics::Surface *blitted, uint32 color, Graph Graphics::TransparentSurface tmp; tmp.create(blitted->w, blitted->h, blitted->format); tmp.fillRect(Common::Rect(0, 0, tmp.w, tmp.h), color); - tmp.blit(*blitted, 0, 0, Graphics::FLIP_NONE, nullptr, TS_ARGB(255, 255, 255, 255), blitted->w, blitted->h, mode); + tmp.blit(*blitted, 0, 0, Graphics::FLIP_NONE, nullptr, TS_ARGB(255, 255, 255, 255), (int)blitted->w, (int)blitted->h, mode); tmp.free(); } @@ -376,7 +376,7 @@ Graphics::Surface *GraphicsManager::applyLightmapToSprite(Graphics::Surface *&bl (mirror ? Graphics::FLIP_H : Graphics::FLIP_NONE), (mirror ? &rect_h : &rect_none), TS_ARGB(255, 255, 255, 255), - blitted->w, blitted->h, Graphics::BLEND_MULTIPLY); + (int)blitted->w, (int)blitted->h, Graphics::BLEND_MULTIPLY); } } else { curLight[0] = curLight[1] = curLight[2] = 255; |