aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter van Niftrik2019-07-16 16:11:37 +0200
committerWalter van Niftrik2019-07-16 16:24:20 +0200
commit9c7ed5c0da84030467b61bb6a252544c98daada5 (patch)
treee237ab413fe9c8edf0f623a88a1303cc97031b10
parent338baf827cc7dc9c335a8fed4d62ccf2d6231473 (diff)
downloadscummvm-rg350-9c7ed5c0da84030467b61bb6a252544c98daada5.tar.gz
scummvm-rg350-9c7ed5c0da84030467b61bb6a252544c98daada5.tar.bz2
scummvm-rg350-9c7ed5c0da84030467b61bb6a252544c98daada5.zip
ADL: Silence MSVC warnings
-rw-r--r--engines/adl/display_a2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/adl/display_a2.cpp b/engines/adl/display_a2.cpp
index bb0e6d9b03..3a62e33ca6 100644
--- a/engines/adl/display_a2.cpp
+++ b/engines/adl/display_a2.cpp
@@ -387,7 +387,7 @@ static void renderPixelRowMono(byte *dst, byte *src) {
static void copyEvenSurfaceRows(Graphics::Surface &surf) {
byte *src = (byte *)surf.getPixels();
- for (uint y = 0; y < surf.h / 2; ++y) {
+ for (uint y = 0; y < surf.h / 2u; ++y) {
byte *dst = src + surf.pitch;
for (uint x = 0; x < surf.w; ++x)
dst[x] = ALTCOL(src[x]);
@@ -463,7 +463,7 @@ void Display_A2::createFont() {
byte *buf = (byte *)_font->getPixels();
byte *bufInv = buf + (_font->h / 2) * _font->pitch;
- for (uint row = 0; row < _font->h / 2; row += 2) {
+ for (uint row = 0; row < _font->h / 2u; row += 2) {
for (uint col = 0; col < _font->w; ++col)
bufInv[col] = (buf[col] ? 0 : 1);