summaryrefslogtreecommitdiff
path: root/src/screen/mainMenu.c
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2009-05-22 16:11:04 +0200
committerxHire <xhire@tuxportal.cz>2009-05-26 01:10:49 +0200
commitf3ccf7e671c1ce8e2ac3dd791bcfa60d8c5d9c0b (patch)
treeca9a747269952cb508be0c363fa871fd2a01a5c3 /src/screen/mainMenu.c
parent956213a0b57842c3829c0fe13ac917d242e0effb (diff)
Rewritten messages/comments in code of screen
Rectified the coding style in code of screen
Diffstat (limited to 'src/screen/mainMenu.c')
-rw-r--r--src/screen/mainMenu.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/screen/mainMenu.c b/src/screen/mainMenu.c
index d196b08..7cc2228 100644
--- a/src/screen/mainMenu.c
+++ b/src/screen/mainMenu.c
@@ -1,4 +1,3 @@
-
#include <stdio.h>
#include <assert.h>
@@ -11,7 +10,7 @@
#include "hotKey.h"
#ifndef NO_SOUND
-# include "music.h"
+#include "music.h"
#endif
#include "mainMenu.h"
@@ -75,7 +74,7 @@ static void eventWidget(void *p)
{
widget_t *button;
- button = (widget_t *) (p);
+ button = (widget_t *) p;
if (button == button_play) {
screen_set("gameType");
@@ -102,9 +101,8 @@ void main_menu_init()
{
image_t *image;
- image =
- image_add("screen_main.png", IMAGE_NO_ALPHA, "screen_main",
- IMAGE_GROUP_BASE);
+ image = image_add("screen_main.png", IMAGE_NO_ALPHA,
+ "screen_main", IMAGE_GROUP_BASE);
image_backgorund = wid_image_new(0, 0, image);
button_play = button_new(_("Start game"), WINDOW_SIZE_X / 2 - WIDGET_BUTTON_WIDTH / 2, 200, eventWidget);
@@ -117,7 +115,7 @@ void main_menu_init()
music_add("menu.ogg", "menu", MUSIC_GROUP_BASE);
#endif
- screen_register( screen_new("mainMenu", main_menu_start, main_menu_event,
+ screen_register(screen_new("mainMenu", main_menu_start, main_menu_event,
main_menu_draw, main_menu_stop));
}