make scrolling smoother by changing time_delay

This commit is contained in:
zicodxx 2006-10-12 22:48:19 +00:00
parent edd9783f94
commit c8590bc308

View file

@ -105,7 +105,7 @@ void credits_show(char *credits_filename)
ubyte backdrop_palette[768]; ubyte backdrop_palette[768];
ubyte *fade_values_scalled; ubyte *fade_values_scalled;
fix last_time; fix last_time;
fix time_delay = 2800; fix time_delay = (2800/(SHEIGHT/200));
grs_canvas *CreditsOffscreenBuf=NULL; grs_canvas *CreditsOffscreenBuf=NULL;
grs_bitmap backdrop; grs_bitmap backdrop;
box dirty_box[NUM_LINES]; box dirty_box[NUM_LINES];
@ -198,7 +198,7 @@ void credits_show(char *credits_filename)
} while (extra_inc--); } while (extra_inc--);
extra_inc = 0; extra_inc = 0;
for (i=0; i<ROW_SPACING; i += (SWIDTH>=640?FONTSCALE_Y(2):1) ) { for (i=0; i<ROW_SPACING; i += 1 ) {
int y; int y;
box *new_box; box *new_box;
grs_bitmap *tempbmp; grs_bitmap *tempbmp;