src/video/SDL_video.c
changeset 6784 8fd20f04d5d9
parent 6775 ca20a61fe03b
child 6786 7174fb08017a
     1.1 --- a/src/video/SDL_video.c	Mon Dec 31 10:13:25 2012 -0800
     1.2 +++ b/src/video/SDL_video.c	Mon Dec 31 10:14:38 2012 -0800
     1.3 @@ -2989,4 +2989,18 @@
     1.4      return SDL_ShowMessageBox(&data, NULL);
     1.5  }
     1.6  
     1.7 +SDL_bool
     1.8 +SDL_ShouldAllowTopmost()
     1.9 +{
    1.10 +	const char *hint = SDL_GetHint(SDL_HINT_ALLOW_TOPMOST);
    1.11 +	if (hint) {
    1.12 +		if (*hint == '0') {
    1.13 +			return SDL_FALSE;
    1.14 +		} else {
    1.15 +			return SDL_TRUE;
    1.16 +		}
    1.17 +	}
    1.18 +	return SDL_TRUE;
    1.19 +}
    1.20 +
    1.21  /* vi: set ts=4 sw=4 expandtab: */