diff --git a/src/dialogs.c b/src/dialogs.c index ced3569..055c341 100644 --- a/src/dialogs.c +++ b/src/dialogs.c @@ -55,23 +55,23 @@ void showtext(Game *game, bopti_image_t *face, char *text) { */ /* Make a little animation :). */ dupdate(); - while(game->frame_duration < 20) sleep(); + while(game->frame_duration < 100) sleep(); game->frame_duration = 0; /* Ask the user to press EXE to continue. */ dtext(BOX_HEIGHT, y, C_BLACK, "[EXE] to continue ..."); - /* Clear the screen. */ - drect(0, 0, DWIDTH, BOX_HEIGHT*PXSIZE, C_WHITE); } /* Make a little animation :). */ dupdate(); if(l>=max_lines_amount-1){ while(getkey().key != KEY_EXE) sleep(); + /* Clear the screen. */ + drect(BOX_HEIGHT*PXSIZE, 0, DWIDTH, (BOX_HEIGHT-1)*PXSIZE, C_WHITE); /* Reset y and l. */ y = 1; l = 0; } else{ - while(game->frame_duration < 20) sleep(); + while(game->frame_duration < 100) sleep(); } game->frame_duration = 0; } @@ -79,7 +79,7 @@ void showtext(Game *game, bopti_image_t *face, char *text) { /* If we have not filled everthing with text at the end. */ /* Make a little animation :). */ dupdate(); - while(game->frame_duration < 20) sleep(); + while(game->frame_duration < 100) sleep(); game->frame_duration = 0; /* Ask the user to press EXE to continue. */ dtext(1, y, C_BLACK, "[EXE] To continue ...");