diff options
author | rubidium <rubidium@openttd.org> | 2011-05-01 19:51:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-01 19:51:52 +0000 |
commit | 5a620d1c6592057b500f0889eef8949dc1e95e4b (patch) | |
tree | dabae6247490fdea860bea292bb8eee49ce46fe4 /src/sdl.cpp | |
parent | 1a515e6344028854c855671c19f49d8f869eb18f (diff) | |
download | openttd-5a620d1c6592057b500f0889eef8949dc1e95e4b.tar.xz |
(svn r22406) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/sdl.cpp')
-rw-r--r-- | src/sdl.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sdl.cpp b/src/sdl.cpp index 949766772..91d52d917 100644 --- a/src/sdl.cpp +++ b/src/sdl.cpp @@ -16,6 +16,7 @@ #include "sdl.h" #include <SDL.h> +/** Number of users of the SDL library. */ static int _sdl_usage; #ifdef DYNAMICALLY_LOADED_SDL @@ -78,7 +79,10 @@ static const char *LoadSdlDLL() #endif /* DYNAMICALLY_LOADED_SDL */ - +/** + * Open the SDL library. + * @param x The subsystem to load. + */ const char *SdlOpen(uint32 x) { #ifdef DYNAMICALLY_LOADED_SDL @@ -96,6 +100,10 @@ const char *SdlOpen(uint32 x) return NULL; } +/** + * Close the SDL library. + * @param x The subsystem to close. + */ void SdlClose(uint32 x) { if (x != 0) { |