diff options
author | Nicola Mettifogo | 2008-07-27 14:21:16 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-27 14:21:16 +0000 |
commit | 387134a16a144df3c9512e8c61901e7b7142e540 (patch) | |
tree | 1a737f750fb76171fc37dbf8f033154b3a335b1e /engines/parallaction/parallaction_ns.cpp | |
parent | d223e90002d5e95c1dccd14aa81c7090138abbd1 (diff) | |
download | scummvm-rg350-387134a16a144df3c9512e8c61901e7b7142e540.tar.gz scummvm-rg350-387134a16a144df3c9512e8c61901e7b7142e540.tar.bz2 scummvm-rg350-387134a16a144df3c9512e8c61901e7b7142e540.zip |
Moved inventory cursor drawing code to InventoryRenderer.
svn-id: r33337
Diffstat (limited to 'engines/parallaction/parallaction_ns.cpp')
-rw-r--r-- | engines/parallaction/parallaction_ns.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp index e8aa32dea7..5b5c9f6871 100644 --- a/engines/parallaction/parallaction_ns.cpp +++ b/engines/parallaction/parallaction_ns.cpp @@ -211,18 +211,8 @@ void Parallaction_ns::setInventoryCursor(int pos) { byte *v8 = _mouseComposedArrow->getData(0); // FIXME: destination offseting is not clear - byte* s = _char._objs->getData(item->_index); - byte* d = v8 + 7 + MOUSECOMBO_WIDTH * 7; - - for (uint i = 0; i < INVENTORYITEM_HEIGHT; i++) { - memcpy(d, s, INVENTORYITEM_WIDTH); - - s += INVENTORYITEM_PITCH; - d += MOUSECOMBO_WIDTH; - } - + _inventoryRenderer->drawItem(item->_index, v8 + 7 * MOUSECOMBO_WIDTH + 7, MOUSECOMBO_WIDTH); _system->setMouseCursor(v8, MOUSECOMBO_WIDTH, MOUSECOMBO_HEIGHT, 0, 0, 0); - } |