File: windowed-by-default.patch

package info (click to toggle)
redeclipse 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,980 kB
  • sloc: cpp: 99,295; ansic: 2,398; sh: 929; makefile: 693; objc: 361; awk: 167; sql: 102
file content (27 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Markus Koschany <apo@debian.org>
Date: Sat, 27 Aug 2016 00:58:08 +0200
Subject: windowed by default

Debian Games team has a preference for games starting in windoed mode, since
fullscreen SDL will capture all keyboard input and make the user unable to
escape via alt-tab, change volume, or exit sanely in the case of the
application locking up.

Forwarded: not-needed
---
 src/engine/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/engine/main.cpp b/src/engine/main.cpp
index f2ef690..d18f2b5 100644
--- a/src/engine/main.cpp
+++ b/src/engine/main.cpp
@@ -235,7 +235,7 @@ void setfullscreen(bool enable)
     }
 }
 
-VARF(0, fullscreen, 0, 1, 1, if(!(identflags&IDF_WORLD)) setfullscreen(fullscreen!=0));
+VARF(0, fullscreen, 0, 0, 1, if(!(identflags&IDF_WORLD)) setfullscreen(fullscreen!=0));
 
 void resetfullscreen()
 {