| 101 | //========================================================================== |
| 102 | |
| 103 | bool 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 | |
| 124 | FStartScreen* CreateGenericStartScreen(int max_progress) |
nothing calls this directly
no test coverage detected