We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24aa8e7 commit 025fba8Copy full SHA for 025fba8
1 file changed
Source/PC/Graphics_PC.cpp
@@ -694,6 +694,14 @@ bool cGraphics_PC::Sprite_OnScreen_Check() {
694
mFodder->mVideo_Draw_Columns -= ax;
695
ax >>= 1;
696
mFodder->mVideo_Draw_FrameDataPtr += ax;
697
+
698
+ // Ensure the destination X never remains negative after clipping.
699
+ // A remaining -1 here would underflow the destination pointer in Video_Draw_8.
700
+ if (mFodder->mVideo_Draw_PosX < 0)
701
+ {
702
+ ++mFodder->mVideo_Draw_PosX;
703
+ --mFodder->mVideo_Draw_Columns;
704
+ }
705
}
706
707
ax = mFodder->mVideo_Draw_PosX + mFodder->mVideo_Draw_Columns;
0 commit comments