From 5071a1754f3db0adcf477ecf8e5b2a818d1935bd Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Wed, 14 Jul 2004 16:49:10 +0000 Subject: - fixed display of scrollbar if there is no text present - fixed animation delay if update takes longer than the delay - using backgrounds also in 8-bit fullscreen mode to improve performance - implemented screen layer to improve performance - corrected offsets and tab widths in main menu - implemented parameters "current", "mark" and "selected" to choose mark colors in replay display (defaults to the old values) - implemented color value "None" to be able to unset a color --- bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitmap.c') diff --git a/bitmap.c b/bitmap.c index 0137289..4a2ab27 100644 --- a/bitmap.c +++ b/bitmap.c @@ -1,5 +1,5 @@ /* - * $Id: bitmap.c,v 1.17 2004/06/18 16:08:11 lordjaxom Exp $ + * $Id: bitmap.c,v 1.18 2004/07/13 13:52:51 lordjaxom Exp $ */ #include "bitmap.h" @@ -72,7 +72,7 @@ cBitmap &cText2SkinBitmap::Get(int &UpdateIn) { } else if ((diff = cur - mLastGet) >= mDelay) { mCurrent = (mCurrent + 1) % mBitmaps.size(); mLastGet = cur; - upd = mDelay; + upd = mDelay - diff > 1 ? mDelay - diff : 1; } else { upd = mDelay - diff; } -- cgit v1.2.3