From c94fd664bba352732bf0e5c9a77e709b49f1aa4f Mon Sep 17 00:00:00 2001 From: oroborus Date: Mon, 26 May 2008 12:45:53 +0000 Subject: - mensie upravy v kode - navod na zostavovanie projektu - da sa to skompilovat :D - PS: este to nie je odladene, a musim sa ucit na prijmacky na FEI git-svn-id: http://opensvn.csie.org/tuxanci_ng@54 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/interface.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/interface.c') diff --git a/src/interface.c b/src/interface.c index 4fdf2ba..675c4d2 100755 --- a/src/interface.c +++ b/src/interface.c @@ -9,7 +9,7 @@ //povrch okna static SDL_Surface *screen; -static SDL_Surface *fake_screen; +//static SDL_Surface *my_surface; //casovac static SDL_TimerID timer; @@ -53,11 +53,14 @@ int initSDL() //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); - fake_screen = SDL_CreateRGBSurface(screen->flags, WINDOW_SIZE_X, WINDOW_SIZE_Y, +/* + my_surface = SDL_CreateRGBSurface(screen->flags, WINDOW_SIZE_X, WINDOW_SIZE_Y, screen->format->BitsPerPixel, screen->format->Rmask, screen->format->Gmask, screen->format->Bmask, screen->format->Amask); + memset(my_surface->pixels, 128, 200); +*/ if (screen == NULL ) { fprintf(stderr, "%s\n", SDL_GetError()); @@ -86,6 +89,8 @@ void interfaceRefresh() { //SDL_BlitSurface(fake_screen, NULL, screen, NULL); //SDL_UpdateRect(screen, 0, 0, screen->w, screen->h); + + //drawImage(my_surface, 200, 100, 0, 0, 200, 200); SDL_Flip(screen); } -- cgit v1.2.3