aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-03-30 15:34:31 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-03-30 15:34:31 +0000
commitfc662f10605584262446f5019273464ed92973c1 (patch)
treeba6e6fafd19c755353981c5507044aa1d5e3ff5e
parentf4a2afab86a7c456804d37be4f3997018428ee91 (diff)
allow screensaver per default
-rw-r--r--spectrogram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spectrogram.c b/spectrogram.c
index cf93a89..ec2e9ce 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -269,6 +269,8 @@ main(int argc, char **argv)
int width, height;
int pressed = 0;
+ setenv("SDL_VIDEO_ALLOW_SCREENSAVER", "1", 0);
+
if (SDL_Init(SDL_INIT_VIDEO) < 0)
errx(1, "SDL init failed");