diff --git a/src/dialogs.c b/src/dialogs.c index 090ecf1..27f4620 100644 --- a/src/dialogs.c +++ b/src/dialogs.c @@ -8,7 +8,7 @@ #include "config.h" -#define BOX_HEIGHT (F_HEIGHT/PXSIZE+9) +#define BOX_HEIGHT (F_HEIGHT/PXSIZE+8) extern font_t fontRPG; #define FONT_USED fontRPG @@ -49,7 +49,7 @@ int showtext_opt(Game *game, bopti_image_t *face, char *text, const char *c; if(start_anim){ /* Run a little fancy animation. */ - for(i=0;i0;i--){ + for(i=BOX_HEIGHT;i>0;i--){ draw(game); drect(0, 0, DWIDTH, i*PXSIZE, C_WHITE); drect(0, i*PXSIZE, DWIDTH, (i+1)*PXSIZE, C_BLACK); @@ -186,11 +185,11 @@ int _choice_call_before_end(Game *game, unsigned int org_i) { int i, key; /* Make a little animation because we looove little animations ;) */ for(i=0;iframe_duration < 20) sleep(); @@ -237,11 +236,11 @@ int _choice_call_before_end(Game *game, unsigned int org_i) { draw(game); showtext_opt(game, _face, _text, NULL, false, false, NULL, 0, false, _i, false); - drect(0, BOX_HEIGHT*PXSIZE, i*(DWIDTH/8), + drect(0, (BOX_HEIGHT+1)*PXSIZE+1, i*(DWIDTH/8), (BOX_HEIGHT+CHOICE_BOX_HEIGHT)*PXSIZE, C_WHITE); drect(i*(DWIDTH/8), BOX_HEIGHT*PXSIZE, i*(DWIDTH/8)+PXSIZE-1, (BOX_HEIGHT+CHOICE_BOX_HEIGHT+1)*PXSIZE, C_BLACK); - drect(0, (BOX_HEIGHT+CHOICE_BOX_HEIGHT)*PXSIZE+1, i*(DWIDTH/8), + drect(0, (BOX_HEIGHT+CHOICE_BOX_HEIGHT)*PXSIZE, i*(DWIDTH/8), (BOX_HEIGHT+CHOICE_BOX_HEIGHT+1)*PXSIZE, C_BLACK); dupdate(); while(game->frame_duration < 20) sleep();