Skip to content

Commit 6e10961

Browse files
committed
Merge pull request #682 from pythonic64/window_option
Window option for SDL2 bootstrap
2 parents b343718 + 1e4796c commit 6e10961

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pythonforandroid/bootstraps/sdl2/build/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ def parse_args(args=None):
408408
ap.add_argument('--wakelock', dest='wakelock', action='store_true',
409409
help=('Indicate if the application needs the device '
410410
'to stay on'))
411+
ap.add_argument('--window', dest='window', action='store_true',
412+
help='Indicate if the application will be windowed')
411413
ap.add_argument('--blacklist', dest='blacklist',
412414
default=join(curdir, 'blacklist.txt'),
413415
help=('Use a blacklist file to match unwanted file in '

pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<application android:label="@string/app_name"
5555
android:icon="@drawable/icon"
5656
android:allowBackup="true"
57-
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
57+
android:theme="@android:style/Theme.NoTitleBar{% if not args.window %}.Fullscreen{% endif %}"
5858
android:hardwareAccelerated="true" >
5959

6060
{% for m in args.meta_data %}

0 commit comments

Comments
 (0)