summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Sprite.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2Sprite.cpp
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2Sprite.cpp6
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);
}
}