diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-13 13:54:09 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-13 13:54:09 +0000 |
| commit | 5b67651831ad9b160b41990288c938c7a05c1db1 (patch) | |
| tree | 6380e378eae351d40abe85b66aed40f5c88f2951 /src/client/interface.c | |
| parent | 54d61c622ba721b4ea57852e0ba6c87acfa66a2b (diff) | |
- upravene indexovanie v index.c a space.c ktore indexovanie pouziva
git-svn-id: http://opensvn.csie.org/tuxanci_ng@194 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/client/interface.c')
| -rwxr-xr-x | src/client/interface.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/interface.c b/src/client/interface.c index 37aa361..b697524 100755 --- a/src/client/interface.c +++ b/src/client/interface.c @@ -16,7 +16,7 @@ static SDL_Surface *screen; static SDL_TimerID timer; // window flags -static Uint32 g_win_flags = SDL_HWSURFACE|SDL_DOUBLEBUF; +static Uint32 g_win_flags = SDL_SWSURFACE|SDL_DOUBLEBUF|SDL_ANYFORMAT; static bool_t isInterfaceInit = FALSE; @@ -70,9 +70,9 @@ int initSDL() screen->format->BitsPerPixel, screen->format->Rmask, screen->format->Gmask, screen->format->Bmask, screen->format->Amask); - - memset(my_surface->pixels, 128, 200); */ + //memset(my_surface->pixels, 128, 200); + if (screen == NULL ) { fprintf(stderr, "%s\n", SDL_GetError()); @@ -106,6 +106,7 @@ void interfaceRefresh() //drawImage(my_surface, 200, 100, 0, 0, 200, 200); SDL_Flip(screen); + //SDL_UpdateRect(screen, 400, 0, 400, 600); } int toggleFullscreen() |