mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
make the progress meter animate the correct direction.
This commit is contained in:
parent
fe1cee9965
commit
2a4187e698
@ -192,7 +192,7 @@ nsProgressMeterFrame :: nsProgressMeterFrame ( )
|
||||
mProgress = float(0.0);
|
||||
mHorizontal = PR_TRUE;
|
||||
mUndetermined = PR_FALSE;
|
||||
mStripeOffset = 0;
|
||||
mStripeOffset = STRIPE_WIDTH;
|
||||
}
|
||||
|
||||
//
|
||||
@ -594,10 +594,10 @@ nsProgressMeterFrame::PaintBarStripped(nsIPresContext& aPresContext, nsIRenderin
|
||||
void
|
||||
nsProgressMeterFrame::animate()
|
||||
{
|
||||
mStripeOffset += ANIMATION_INCREMENT;
|
||||
mStripeOffset -= ANIMATION_INCREMENT;
|
||||
// printf("animate=%d\n", mStripeOffset);
|
||||
if (mStripeOffset >= STRIPE_WIDTH)
|
||||
mStripeOffset = 0;
|
||||
if (mStripeOffset < 0)
|
||||
mStripeOffset = STRIPE_WIDTH;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user