[Scummvm-git-logs] scummvm master -> 945ef9dbd45b4ba8305b118839f489522dd0e327

dreammaster noreply at scummvm.org
Tue Feb 13 04:44:42 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
945ef9dbd4 M4: Remove deprecated sprite code


Commit: 945ef9dbd45b4ba8305b118839f489522dd0e327
    https://github.com/scummvm/scummvm/commit/945ef9dbd45b4ba8305b118839f489522dd0e327
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-02-12T20:44:37-08:00

Commit Message:
M4: Remove deprecated sprite code

Changed paths:
    engines/m4/wscript/ws_hal.cpp


diff --git a/engines/m4/wscript/ws_hal.cpp b/engines/m4/wscript/ws_hal.cpp
index f3a90f694f2..6d888e45d13 100644
--- a/engines/m4/wscript/ws_hal.cpp
+++ b/engines/m4/wscript/ws_hal.cpp
@@ -180,22 +180,6 @@ static void drawSprite(CCB *myCCB, Anim8 *myAnim8, Buffer *halScrnBuf, Buffer *s
 	dr.ICT = ICT;
 	dr.srcDepth = myCCB->layer >> 8;
 
-// FIXME: Unused Code. Remove?
-#if 0
-	RendCell Frame;
-	Frame.hot_x = myCCB->source->xOffset;
-	Frame.hot_y = myCCB->source->yOffset;
-	Frame.Width = source->w;
-	Frame.Height = source->h;
-
-	if ((!myPalette) || (!ICT)) {
-		Frame.Comp = (uint32)(source->encoding & 0x7f);
-	} else {
-		Frame.Comp = (uint32)source->encoding;
-	}
-	Frame.data = source->data;
-#endif
-
 	// And draw the sprite
 	gr_sprite_draw(&dr);
 	myCCB->flags &= ~CCB_REDRAW;




More information about the Scummvm-git-logs mailing list