From 9a8edc5ab3967e9f115750371306d79653f4823a Mon Sep 17 00:00:00 2001 From: xHire Date: Wed, 30 Jul 2008 13:43:47 +0000 Subject: - changed window title git-svn-id: http://opensvn.csie.org/tuxanci_ng@183 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/client/interface.c | 14 +++++++------- src/client/interface.h | 7 +++---- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/client/interface.c b/src/client/interface.c index 3ae6121..2c45110 100755 --- a/src/client/interface.c +++ b/src/client/interface.c @@ -7,14 +7,14 @@ #include "interface.h" #include "screen.h" -//povrch okna +// window surface static SDL_Surface *screen; //static SDL_Surface *my_surface; -//casovac +// timer static SDL_TimerID timer; -//priznaky okna +// window flags static Uint32 g_win_flags = SDL_HWSURFACE|SDL_DOUBLEBUF; static bool_t isInterfaceInit = FALSE; @@ -41,7 +41,7 @@ int initSDL() { printf("init SDL..\n"); - //inicializujem SDL + // initialization of SDL if( SDL_Init(SDL_SUBSYSTEMS) == -1 ) { fprintf(stderr, "%s\n", SDL_GetError()); @@ -49,7 +49,7 @@ int initSDL() return -1; } - //inicializujem okno + // initialization of SDL //screen = SDL_SetVideoMode(WINDOW_SIZE_X, WINDOW_SIZE_Y, 0, g_win_flags); screen = SDL_SetVideoMode(WINDOW_SIZE_X, WINDOW_SIZE_Y, 0, g_win_flags); @@ -217,7 +217,7 @@ int eventAction() } break; - // Zmena velikosti okna + // change of window size case SDL_VIDEORESIZE: screen = SDL_SetVideoMode(event.resize.w,event.resize.h, WIN_BPP, g_win_flags); @@ -228,7 +228,7 @@ int eventAction() } break; - // Pozadavek na ukonceni + // termination request case SDL_QUIT: return -1; break; diff --git a/src/client/interface.h b/src/client/interface.h index 90fc2f8..cabc2a7 100755 --- a/src/client/interface.h +++ b/src/client/interface.h @@ -18,12 +18,12 @@ #define SDL_SUBSYSTEMS SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_DOUBLEBUF -//napis na okne -#define WINDOW_TITLE "Tuxanci next generation " TUXANCI_VERSION +// windows title +#define WINDOW_TITLE "Tuxánci " TUXANCI_VERSION #define WIN_BPP 0 #define USR_EVT_TIMER 0 -//interval pri ktorom sa spusta akcia(); +// interval (in ms) of triggering akcia(); #define INTERVAL 50 extern bool_t isInterfaceInicialized(); @@ -36,5 +36,4 @@ extern void interfaceRefresh(); extern void eventSDL(); extern void quitSDL(); - #endif -- cgit v1.2.3