projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20001206-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.c
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index 7c38aa940d26fa1c45f5fc9639a9ca1fd7b17306..a4fbf7dee3d12997c9cc817a21b40507b755d1b9 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-24,8
+24,8
@@
inline void SDLInitVideoDisplay(void)
{
/* initialize SDL video */
inline void SDLInitVideoDisplay(void)
{
/* initialize SDL video */
- if (SDL_Init(SDL_INIT_VIDEO) < 0)
- Error(ERR_EXIT, "SDL_Init() failed: %s", SDL_GetError());
+ if (SDL_Init
SubSystem
(SDL_INIT_VIDEO) < 0)
+ Error(ERR_EXIT, "SDL_Init
SubSystem
() failed: %s", SDL_GetError());
/* set default SDL depth */
video.default_depth = SDL_GetVideoInfo()->vfmt->BitsPerPixel;
/* set default SDL depth */
video.default_depth = SDL_GetVideoInfo()->vfmt->BitsPerPixel;
@@
-707,9
+707,9
@@
Bitmap *SDLLoadImage(char *filename)
inline boolean SDLOpenAudio(void)
{
inline boolean SDLOpenAudio(void)
{
- if (SDL_Init(SDL_INIT_AUDIO) < 0)
+ if (SDL_Init
SubSystem
(SDL_INIT_AUDIO) < 0)
{
{
- Error(ERR_WARN, "SDL_Init() failed: %s", SDL_GetError());
+ Error(ERR_WARN, "SDL_Init
SubSystem
() failed: %s", SDL_GetError());
return FALSE;
}
return FALSE;
}