Debian Codegraph @

debian/patches/start-in-windowed-mode.patch

raw
1 From: Markus Koschany <[email protected]>
2 Date: Wed, 25 Apr 2018 23:38:05 +0200
3 Subject: start in windowed mode
4
5 Start by default in windowed mode which provides better performance and better
6 compatibility with certain window managers. The fullscreen option can be
7 enabled with the --fullscreen mode switch.
8
9 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718884
10 ---
11 init.lua | 6 +++---
12 pax-britannica.6 | 3 +++
13 2 files changed, 6 insertions(+), 3 deletions(-)
14
15 diff --git a/init.lua b/init.lua
16 index 3164e0a..b43cb63 100644
17 --- a/init.lua
18 +++ b/init.lua
19 @@ -12,10 +12,10 @@ end
20
21 kernel.set_ratio(4/3)
22
23 -if args['--windowed'] then
24 - kernel.set_video_mode(1024, 768)
25 -else
26 +if args['--fullscreen'] then
27 kernel.set_fullscreen(true)
28 +else
29 + kernel.set_video_mode(1024, 768)
30 end
31
32 kernel.start_main_loop(the_game.make())
33 diff --git a/pax-britannica.6 b/pax-britannica.6
34 index 3bd9bab..8ee509a 100644
35 --- a/pax-britannica.6
36 +++ b/pax-britannica.6
37 @@ -19,6 +19,9 @@ played using only one button for each player.
38 .TP
39 .B \-\-stderr
40 Send log messages to standard error, instead of \fI~/.dokidoki.log\fP.
41 +.TP
42 +.B \-\-fullscreen
43 +Start in fullscreen mode.
44 .SH HOW TO PLAY
45 The A, F, H, and L keys control the four players, and the escape key
46 quits. Gamepads are also supported.