diff options
Diffstat (limited to 'src/T2DLL/T2Sprite.cpp')
-rw-r--r-- | src/T2DLL/T2Sprite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/T2DLL/T2Sprite.cpp b/src/T2DLL/T2Sprite.cpp index 6f04e24..2cbd7e8 100644 --- a/src/T2DLL/T2Sprite.cpp +++ b/src/T2DLL/T2Sprite.cpp @@ -32,7 +32,7 @@ int T2Sprite::NewSprite(T2ImageObj& imageObj, const CString& name, int layer) { obj->mIndex = index; obj->mLayer = layer; - int objIndex = imageObj.FindObject(name, -1, 0, 0, 255); + int objIndex = imageObj.FindObject(name); imageObj.GetObjectSize(objIndex, &obj->mSize); AddTail(obj); return index; @@ -141,11 +141,11 @@ void T2Sprite::DrawSprite(T2BitImage* dest, T2SpriteObj* obj, int factor) { rect.bottom = rect.bottom / (1 << factor); rect.right = rect.right / (1 << factor); - int objectID = obj->mImageObj->FindObject(obj->mName, obj->mPattern, 0, 0, 255); + int objectID = obj->mImageObj->FindObject(obj->mName, obj->mPattern); if (objectID < 0) return; - obj->mImageObj->DrawObject(dest, objectID, rect, factor, -1); + obj->mImageObj->DrawObject(dest, objectID, rect, factor); } } |