diff options
author | Paweł Kołodziejski | 2003-04-30 05:47:18 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-04-30 05:47:18 +0000 |
commit | 62aec0740245423b1c83394ba26f9d032ac1aa4c (patch) | |
tree | cf36709a386e706f51a649fe01fda445e5e2eb63 /sky | |
parent | f8e18d97d810e943bd81833cd3c987aa83843d8c (diff) | |
download | scummvm-rg350-62aec0740245423b1c83394ba26f9d032ac1aa4c.tar.gz scummvm-rg350-62aec0740245423b1c83394ba26f9d032ac1aa4c.tar.bz2 scummvm-rg350-62aec0740245423b1c83394ba26f9d032ac1aa4c.zip |
fixed warning
svn-id: r7208
Diffstat (limited to 'sky')
-rw-r--r-- | sky/text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sky/text.cpp b/sky/text.cpp index f36431a54b..15e569f2fe 100644 --- a/sky/text.cpp +++ b/sky/text.cpp @@ -346,7 +346,7 @@ lowTextManager_t SkyText::lowTextManager(uint32 textNum, uint16 width, uint16 lo cpt = SkyState::fetchCompact(compactNum); } - cpt->flag = (compactNum - FIRST_TEXT_COMPACT) + FIRST_TEXT_BUFFER; + cpt->flag = (uint16)(compactNum - FIRST_TEXT_COMPACT) + FIRST_TEXT_BUFFER; byte *oldText = (byte *)SkyState::_itemList[compactNum]; SkyState::_itemList[compactNum] = (void **)textData; @@ -360,7 +360,7 @@ lowTextManager_t SkyText::lowTextManager(uint32 textNum, uint16 width, uint16 lo struct lowTextManager_t ret; ret.textData = _dtData; - ret.compactNum = compactNum; + ret.compactNum = (uint16)compactNum; return ret; |