MCPcopy Create free account
hub / github.com/ZDoom/Raze / DoProgress

Method DoProgress

source/common/startscreen/startscreen_hexen.cpp:140–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138//==========================================================================
139
140bool FHexenStartScreen::DoProgress(int advance)
141{
142 int notch_pos, x, y;
143
144 if (CurPos <= MaxPos)
145 {
146 int numnotches = (16 * 32) / NotchBits.GetWidth();
147 notch_pos = ((CurPos + 1) * numnotches) / MaxPos;
148 if (notch_pos != NotchPos)
149 { // Time to draw another notch.
150 for (; NotchPos < notch_pos; NotchPos++)
151 {
152 x = ST_PROGRESS_X + NotchBits.GetWidth() * NotchPos;
153 y = ST_PROGRESS_Y;
154 StartupBitmap.Blit(x, y, NotchBits);
155 }
156 StartupTexture->CleanHardwareData(true);
157 ST_Sound("StartupTick");
158 }
159 }
160 return FStartScreen::DoProgress(advance);
161}
162
163//==========================================================================
164//

Callers

nothing calls this directly

Calls 3

BlitMethod · 0.80
CleanHardwareDataMethod · 0.80
GetWidthMethod · 0.45

Tested by

no test coverage detected