Clean the message menu

This commit is contained in:
Shadow15510 2021-06-05 21:38:14 +02:00
parent 61423f4470
commit 8933166165
5 changed files with 4 additions and 33 deletions

Binary file not shown.

View File

@ -160,23 +160,6 @@ int callback_tick(volatile int *tick)
void message(char *msg)
{
display_message(msg);
getkey();
int key = 0, frame = 0;
static volatile int tick = 1;
int t = timer_configure(TIMER_ANY, DNA_ANIMATION_TICK*1000, GINT_CALL(callback_tick, &tick));
if (t >= 0) timer_start(t);
while (!key)
{
while(!tick) sleep();
tick = 0;
key = rtc_key();
display_dna_animation(frame);
frame = (frame + 1) % 16;
}
if (t >= 0) timer_stop(t);
}

View File

@ -198,13 +198,3 @@ void display_message(char *msg)
}
void display_dna_animation(const int frame)
{
extern const bopti_image_t img_dna;
dsubimage(2, 3, &img_dna, 8 * frame, 0, 7, 12, DIMAGE_NONE);
dsubimage(42, 3, &img_dna, 8 * ((frame + 2) % 16), 0, 7, 12, DIMAGE_NONE);
dupdate();
}

View File

@ -21,7 +21,5 @@ void display_mutation_description(const char *name, const char *description, con
// output_error : display text and message background
void display_message(char *msg);
// display_dna_animation : display the DNA according to the frame number
void display_dna_animation(const int frame);
#endif /* _PLAGUE_DISPLAY_ENGINE_H */

View File

@ -1,7 +1,7 @@
/*
Project name ......: Plague
Version ...........: 1.3.3
Last modification .: 4 June 2021
Version ...........: 1.3.4
Last modification .: 5 June 2021
code and assets provided with licence :
GNU General Public Licence v3.0
@ -20,7 +20,7 @@
#include "mutation_engine.h"
#include "save.h"
const char *VERSION = "1.3.3";
const char *VERSION = "1.3.4";
// title_screen : display the title screen
static void title_screen(void);