MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Video_Draw_16_Offset

Method Video_Draw_16_Offset

Source/Amiga/Graphics_Amiga.cpp:995–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993
994
995void cGraphics_Amiga::Video_Draw_16_Offset(int16 pCx) {
996 uint8* pDs = mFodder->mVideo_Draw_FrameDataPtr;
997 uint8* di = mSurface->GetSurfaceBuffer() + 16;
998
999 int16 ax = pCx;
1000
1001 di += (mFodder->mVideo_Draw_PosY * mSurface->GetWidth());
1002
1003 int16 SourceX = 0, SourceY = 0;
1004
1005 for (int16 bx = 0; bx < mFodder->mVideo_Draw_Rows; ++bx) {
1006 uint16 cx;
1007 SourceX = 0;
1008
1009 for (cx = ax; cx < (mSurface->GetWidth() - 32); cx++) {
1010
1011 DrawPixel(pDs, di, SourceX, SourceY, cx, bx);
1012
1013 SourceX++;
1014 }
1015
1016 for (cx = 0; cx < ax; cx++) {
1017
1018 DrawPixel(pDs, di, SourceX, SourceY, cx, bx);
1019
1020 SourceX++;
1021 }
1022
1023 ++SourceY;
1024 }
1025
1026}
1027
1028void cGraphics_Amiga::Video_Draw_16(const uint8* RowPallete) {
1029

Callers

nothing calls this directly

Calls 2

GetSurfaceBufferMethod · 0.80
GetWidthMethod · 0.80

Tested by

no test coverage detected