improved credits scrolling - not that smooth anymore, but less CPU intense

This commit is contained in:
zicodxx 2007-01-25 23:58:28 +00:00
parent 60ba7257f9
commit d9124c0d33
2 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20070126
--------
main/credits.c: improved credits scrolling - not that smooth anymore, but less CPU intense
20070125
--------
d1x.ini, arch/ogl.gr.c, cfile/cfile.c: include/gr.h, main/game.c, main/gamefont.c, main/inferno.c, main/menu.c, main/ndewdemo.c, main/newdemo.h, main/newmenu.c, titles.c: read/save Hires fonts/briefings, demos, AddOn missions, screenshots from/to subdirectories

View file

@ -105,7 +105,7 @@ void credits_show(char *credits_filename)
ubyte backdrop_palette[768];
ubyte *fade_values_scalled;
fix last_time;
fix time_delay = (2800/(SHEIGHT/200));
fix time_delay = 2800;
grs_canvas *CreditsOffscreenBuf=NULL;
grs_bitmap backdrop;
box dirty_box[NUM_LINES];
@ -198,7 +198,7 @@ void credits_show(char *credits_filename)
} while (extra_inc--);
extra_inc = 0;
for (i=0; i<ROW_SPACING; i += 1 ) {
for (i=0; i<ROW_SPACING; i += (SHEIGHT/200) ) {
int y;
box *new_box;
grs_bitmap *tempbmp;
@ -254,7 +254,7 @@ void credits_show(char *credits_filename)
tempbmp = &(CreditsOffscreenBuf->cv_bitmap);
gr_bm_bitblt( new_box->width+1,
new_box->height+4,
new_box->height+5,
new_box->left,
new_box->top,
new_box->left,
@ -271,7 +271,7 @@ void credits_show(char *credits_filename)
tempbmp = &(CreditsOffscreenBuf->cv_bitmap);
gr_bm_bitblt( new_box->width,
new_box->height+2,
new_box->height,
new_box->left,
new_box->top,
new_box->left,