X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fscreen.c;h=927903b13af0bdeee9551be9524373b09e467fd1;hb=562d5ba2221876479318073167c67ef74ca50c69;hp=43797780390776858ed59a5968a35eba761255c0;hpb=e75a1243556f063851a5adf9cb2e1a00878c4365;p=dosdemo diff --git a/src/screen.c b/src/screen.c index 4379778..927903b 100644 --- a/src/screen.c +++ b/src/screen.c @@ -7,7 +7,8 @@ struct screen *tunnel_screen(void); struct screen *fract_screen(void); -struct screen *mike_screen(void); +struct screen *grise_screen(void); +struct screen *polytest_screen(void); #define NUM_SCR 32 static struct screen *scr[NUM_SCR]; @@ -26,7 +27,10 @@ int scr_init(void) if(!(scr[idx++] = fract_screen())) { return -1; } - if (!(scr[idx++] = mike_screen())) { + if (!(scr[idx++] = grise_screen())) { + return -1; + } + if(!(scr[idx++] = polytest_screen())) { return -1; } num_screens = idx; @@ -113,11 +117,8 @@ int scr_change(struct screen *s, long trans_time) trans_dur = 0; } - if(cur) { - if(cur->stop) { - cur->stop(trans_dur); - } - + if(cur && cur->stop) { + cur->stop(trans_dur); prev = cur; next = s; } else {