+// set the icon (we dont use SDL here since it would be too much a PITA)
+#ifdef WIN32
+#include "resource.h"
+#include <SDL_syswm.h>
+static void VID_SetCaption()
+{
+ SDL_SysWMinfo info;
+ HICON icon;
+
+ // set the caption
+ SDL_WM_SetCaption( gamename, NULL );
+
+ // get the HWND handle
+ SDL_VERSION( &info.version );
+ if( !SDL_GetWMInfo( &info ) )
+ return;
+
+ //icon = LoadIcon( GetModuleHandle( NULL ), MAKEINTRESOURCE( IDI_ICON1 ) );
+ icon = LoadIcon( NULL, IDI_ERROR );
+ SetClassLong( info.window, GCL_HICON, (LONG) icon );
+}
+#else
+static void VID_SetCaption()
+{
+ SDL_WM_SetCaption( gamename, NULL );
+}
+#endif
+
+static void VID_OutputVersion()
+{
+ const SDL_version *version;
+ version = SDL_Linked_Version();
+ Con_DPrintf( "Linked against SDL version %d.%d.%d\n"
+ "Using SDL library version %d.%d.%d\n",
+ SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL,
+ version->major, version->minor, version->patch );
+}
+