diff options
Diffstat (limited to 'src/screen/screen_credits.c')
| -rw-r--r-- | src/screen/screen_credits.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/screen/screen_credits.c b/src/screen/screen_credits.c index ffb6b5f..5a8e9b8 100644 --- a/src/screen/screen_credits.c +++ b/src/screen/screen_credits.c @@ -17,12 +17,13 @@ #include "screen_credits.h" +#include "widget.h" #include "widget_image.h" #include "widget_label.h" #include "widget_button.h" -static widget_image_t *image_backgorund; -static widget_button_t *button_back; +static widget_t *image_backgorund; +static widget_t *button_back; static list_t *listWidgetLabel; static textFile_t *textFile; static int offset; @@ -48,8 +49,8 @@ void drawScreenCredits() { int z; - widget_label_t *this; - this = (widget_label_t *)listWidgetLabel->list[i]; + widget_t *this; + this = (widget_t *)listWidgetLabel->list[i]; z = this->y; this->y += offset; @@ -84,9 +85,9 @@ void stopScreenCredits() static void eventWidget(void *p) { - widget_button_t *button; + widget_t *button; - button = (widget_button_t *)(p); + button = (widget_t *)(p); if( button == button_back ) { @@ -112,7 +113,7 @@ void initScreenCredits() textFile = loadTextFile(PATH_DATA SCREEN_CREDITS_FILE); for( i = 0 ; i < textFile->text->count ; i++ ) { - widget_label_t *label; + widget_t *label; char *line; line = (char *)textFile->text->list[i]; label = newWidgetLabel(line, WINDOW_SIZE_X/2-WINDOW_SIZE_X/4, @@ -126,7 +127,7 @@ void initScreenCredits() for( i = 0 ; i < 5 ; i++ ) { creditExists = 0; - widget_label_t *label; + widget_t *label; char *line; line = "Credit file not found..."; label = newWidgetLabel(line, WINDOW_SIZE_X/2, (WINDOW_SIZE_Y-100)+i*20, |