| 138 | //========================================================================== |
| 139 | |
| 140 | bool 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 | // |
nothing calls this directly
no test coverage detected