From f3ccf7e671c1ce8e2ac3dd791bcfa60d8c5d9c0b Mon Sep 17 00:00:00 2001 From: xHire Date: Fri, 22 May 2009 16:11:04 +0200 Subject: Rewritten messages/comments in code of screen Rectified the coding style in code of screen --- src/screen/credits.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/screen/credits.c') diff --git a/src/screen/credits.c b/src/screen/credits.c index 8aa9734..e3ad9be 100644 --- a/src/screen/credits.c +++ b/src/screen/credits.c @@ -1,4 +1,3 @@ - #include #include @@ -12,7 +11,7 @@ #include "hotKey.h" #ifndef NO_SOUND -# include "music.h" +#include "music.h" #endif #include "credits.h" @@ -81,7 +80,7 @@ void scredits_event() offset = 0; } - //printf("offset = %d\n", offset); + /*printf("offset = %d\n", offset);*/ } void scredits_stop() @@ -93,7 +92,7 @@ static void eventWidget(void *p) { widget_t *button; - button = (widget_t *) (p); + button = (widget_t *) p; if (button == button_back) { screen_set("mainMenu"); @@ -108,8 +107,8 @@ void scredits_init() image = image_get(IMAGE_GROUP_BASE, "screen_main"); image_backgorund = wid_image_new(0, 0, image); - button_back = button_new(_("back"), WINDOW_SIZE_X / 2 - WIDGET_BUTTON_WIDTH / 2, - WINDOW_SIZE_Y - 80, eventWidget); + button_back = button_new(_("Back"), WINDOW_SIZE_X / 2 - WIDGET_BUTTON_WIDTH / 2, + WINDOW_SIZE_Y - 80, eventWidget); listWidgetLabel = list_new(); @@ -135,8 +134,8 @@ void scredits_init() widget_t *label; char line[STR_SIZE]; - sprintf(line, _("Credit file not found... %s/%s"), PATH_DOC, - SCREEN_CREDITS_FILE); + sprintf(line, _("[Error] Credits file not found [%s]: %s\n"), + PATH_DOC, SCREEN_CREDITS_FILE); label = label_new(line, WINDOW_SIZE_X / 2, (WINDOW_SIZE_Y - 100) + i * 20, @@ -146,8 +145,8 @@ void scredits_init() } } - screen_register(screen_new ("credits", scredits_start, scredits_event, - scredits_draw, scredits_stop)); + screen_register(screen_new("credits", scredits_start, scredits_event, + scredits_draw, scredits_stop)); } void scredits_quit() -- cgit v1.2.3