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

Method DoProgress

source/common/startscreen/startscreen_generic.cpp:103–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101//==========================================================================
102
103bool FGenericStartScreen::DoProgress(int advance)
104{
105 int notch_pos;
106
107 if (CurPos < MaxPos)
108 {
109 RgbQuad bcolor = { 2, 25, 87, 255 }; // todo: make configurable
110 int numnotches = 200 * 2;
111 notch_pos = ((CurPos + 1) * numnotches) / MaxPos;
112 if (notch_pos != NotchPos)
113 { // Time to draw another notch.
114 ClearBlock(StartupBitmap, bcolor, (320 - 100) * 2, 480 * 2 - 30, notch_pos, 4 * 2);
115 NotchPos = notch_pos;
116 if (StartupTexture)
117 StartupTexture->CleanHardwareData(true);
118 }
119 }
120 return FStartScreen::DoProgress(advance);
121}
122
123
124FStartScreen* CreateGenericStartScreen(int max_progress)

Callers

nothing calls this directly

Calls 1

CleanHardwareDataMethod · 0.80

Tested by

no test coverage detected