comparison 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
comparison
equal deleted inserted replaced
4397:fb1fc6c9289e 4398:fe15c4e8efe6
1699 } 1699 }
1700 if ( (title || icon) && (video->SetCaption != NULL) ) { 1700 if ( (title || icon) && (video->SetCaption != NULL) ) {
1701 video->SetCaption(this, video->wm_title,video->wm_icon); 1701 video->SetCaption(this, video->wm_title,video->wm_icon);
1702 } 1702 }
1703 } 1703 }
1704 } 1704
1705 /* PulseAudio can make use of this information. */
1706 extern void SDL_Audio_SetCaption(const char *caption);
1707 SDL_Audio_SetCaption(title);
1708 }
1709
1705 void SDL_WM_GetCaption (char **title, char **icon) 1710 void SDL_WM_GetCaption (char **title, char **icon)
1706 { 1711 {
1707 SDL_VideoDevice *video = current_video; 1712 SDL_VideoDevice *video = current_video;
1708 1713
1709 if ( video ) { 1714 if ( video ) {