aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
authorWalter van Niftrik2016-12-26 12:36:25 +0100
committerWalter van Niftrik2016-12-26 12:36:25 +0100
commit480713a46c04e88b7bb4c02b75a4e3693cf3466c (patch)
treeb0088bbe7495956e28c31ce189c48880a712fb21 /engines/adl
parent0f14f12d6d9cb81040cdc1e499cdcff87abc9e54 (diff)
downloadscummvm-rg350-480713a46c04e88b7bb4c02b75a4e3693cf3466c.tar.gz
scummvm-rg350-480713a46c04e88b7bb4c02b75a4e3693cf3466c.tar.bz2
scummvm-rg350-480713a46c04e88b7bb4c02b75a4e3693cf3466c.zip
ADL: Silence CID 1354788/1354789/1354790
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/display.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/adl/display.cpp b/engines/adl/display.cpp
index 2cf50f72fc..feef8fb2a4 100644
--- a/engines/adl/display.cpp
+++ b/engines/adl/display.cpp
@@ -130,7 +130,7 @@ Display::Display() :
_frameBufSurface->create(DISPLAY_WIDTH * 2, DISPLAY_HEIGHT * 2, Graphics::PixelFormat::createFormatCLUT8());
_textBuf = new byte[TEXT_BUF_SIZE];
- memset(_textBuf, APPLECHAR(' '), TEXT_BUF_SIZE);
+ memset(_textBuf, (byte)APPLECHAR(' '), TEXT_BUF_SIZE);
_textBufSurface = new Graphics::Surface;
// For ease of copying, also use 2x scaling here
_textBufSurface->create(DISPLAY_WIDTH * 2, DISPLAY_HEIGHT * 2, Graphics::PixelFormat::createFormatCLUT8());
@@ -267,7 +267,7 @@ void Display::clear(byte color) {
}
void Display::home() {
- memset(_textBuf, APPLECHAR(' '), TEXT_BUF_SIZE);
+ memset(_textBuf, (byte)APPLECHAR(' '), TEXT_BUF_SIZE);
_cursorPos = 0;
}
@@ -546,7 +546,7 @@ void Display::createFont() {
void Display::scrollUp() {
memmove(_textBuf, _textBuf + TEXT_WIDTH, TEXT_BUF_SIZE - TEXT_WIDTH);
- memset(_textBuf + TEXT_BUF_SIZE - TEXT_WIDTH, APPLECHAR(' '), TEXT_WIDTH);
+ memset(_textBuf + TEXT_BUF_SIZE - TEXT_WIDTH, (byte)APPLECHAR(' '), TEXT_WIDTH);
if (_cursorPos >= TEXT_WIDTH)
_cursorPos -= TEXT_WIDTH;
}