diff src/video/SDL_video.c @ 4398:fe15c4e8efe6 SDL-1.2

1.2: let PulseAudio hook into SDL_WM_SetCaption(). This lets Pulse's system-wide list of currently playing sources have accurate names for SDL applications. DO NOT MERGE WITH 1.3...we'll design a more formal API there.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 24 Jan 2010 08:35:09 +0000
parents d62725f761a1
children ae9c094e9200
line wrap: on
line diff
--- a/src/video/SDL_video.c	Sun Jan 17 05:19:32 2010 +0000
+++ b/src/video/SDL_video.c	Sun Jan 24 08:35:09 2010 +0000
@@ -1701,7 +1701,12 @@
 			video->SetCaption(this, video->wm_title,video->wm_icon);
 		}
 	}
+
+	/* PulseAudio can make use of this information. */
+	extern void SDL_Audio_SetCaption(const char *caption);
+	SDL_Audio_SetCaption(title);
 }
+
 void SDL_WM_GetCaption (char **title, char **icon)
 {
 	SDL_VideoDevice *video = current_video;