MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / SkipRestOfLineWithOverrun

Function SkipRestOfLineWithOverrun

Source/engine/render/clx_render.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74};
75
76DVL_ALWAYS_INLINE DVL_ATTRIBUTE_HOT const uint8_t *SkipRestOfLineWithOverrun(
77 const uint8_t *src, int_fast16_t srcWidth, SkipSize &skipSize)
78{
79 int_fast16_t remainingWidth = srcWidth - skipSize.xOffset;
80 while (remainingWidth > 0) {
81 const auto [srcEnd, length] = ClxBlitInfo(src);
82 src = srcEnd;
83 remainingWidth -= length;
84 }
85 skipSize = GetSkipSize(remainingWidth, srcWidth);
86 return src;
87}
88
89// Returns the horizontal overrun.
90DVL_ALWAYS_INLINE DVL_ATTRIBUTE_HOT int_fast16_t SkipLinesForRenderBackwardsWithOverrun(

Callers 3

DoRenderBackwardsClipXYFunction · 0.85
IsPointWithinClxFunction · 0.85

Calls 2

ClxBlitInfoFunction · 0.85
GetSkipSizeFunction · 0.85

Tested by

no test coverage detected