aboutsummaryrefslogtreecommitdiff
path: root/sword2/maketext.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-01-18 20:57:46 +0000
committerPaweł Kołodziejski2004-01-18 20:57:46 +0000
commit2c3dd03d266d4cd81097ad5d4b712aeadd753333 (patch)
tree4bcd5a0b7a0cedfddea13ca8bacc55e00ebadecd /sword2/maketext.cpp
parentaa0ad9b491362f06ee2f09318a9f0003d8ca4d2a (diff)
downloadscummvm-rg350-2c3dd03d266d4cd81097ad5d4b712aeadd753333.tar.gz
scummvm-rg350-2c3dd03d266d4cd81097ad5d4b712aeadd753333.tar.bz2
scummvm-rg350-2c3dd03d266d4cd81097ad5d4b712aeadd753333.zip
fix warnings
svn-id: r12504
Diffstat (limited to 'sword2/maketext.cpp')
-rw-r--r--sword2/maketext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sword2/maketext.cpp b/sword2/maketext.cpp
index e2ed3eea34..d489422263 100644
--- a/sword2/maketext.cpp
+++ b/sword2/maketext.cpp
@@ -84,7 +84,7 @@ Memory *FontRenderer::makeTextSprite(uint8 *sentence, uint16 maxWidth, uint8 pen
// allocate memory for array of lineInfo structures
- line = _vm->_memory->allocMemory(MAX_LINES * sizeof(LineInfo), MEM_locked, UID_temp);
+ line = _vm->_memory->allocMemory(MAX_LINES * sizeof(LineInfo), MEM_locked, (uint32)UID_temp);
// get details of sentence breakdown into array of LineInfo structures
// and get the no of lines involved
@@ -210,7 +210,7 @@ Memory *FontRenderer::buildTextSprite(uint8 *sentence, uint32 fontRes, uint8 pen
// allocate memory for sprite, and lock it ready for use
// NB. 'textSprite' is the given pointer to the handle to be used
- textSprite = _vm->_memory->allocMemory(sizeof(FrameHeader) + sizeOfSprite, MEM_locked, UID_text_sprite);
+ textSprite = _vm->_memory->allocMemory(sizeof(FrameHeader) + sizeOfSprite, MEM_locked, (uint32)UID_text_sprite);
// the handle (*textSprite) now points to UNMOVABLE memory block
// set up the frame header