[mupen64plus-core] 280/310: Try to fallback to Desktop size window for fullscreen
Sven Eckelmann
ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:58:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-core.
commit 57075c090fdb3aaf4fbb23e531e947b941abe0ea
Author: Sven Eckelmann <sven at narfation.org>
Date: Wed Aug 13 10:45:40 2014 +0200
Try to fallback to Desktop size window for fullscreen
The creation of a fullscreen window seems to fail on linux quite often and a
normal window still work fine. SDL2 allows to resize the window to the
complete screen in this situations as workaround.
---
debian/changelog | 3 +++
debian/patches/sdl2_fullscreen_fallback.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 29 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 360cc61..2e78763 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ mupen64plus-core (2.0-7) UNRELEASED; urgency=medium
* debian/rules:
- Use Largefile Support enabled C API
+ * debian/patches:
+ - Add sdl2_fullscreen_fallback.patch, Try to fallback to Desktop size
+ window for fullscreen (LP Closes: #1355747)
-- Sven Eckelmann <sven at narfation.org> Sun, 13 Jul 2014 10:22:55 +0200
diff --git a/debian/patches/sdl2_fullscreen_fallback.patch b/debian/patches/sdl2_fullscreen_fallback.patch
new file mode 100644
index 0000000..9a11a35
--- /dev/null
+++ b/debian/patches/sdl2_fullscreen_fallback.patch
@@ -0,0 +1,25 @@
+Description: Try to fallback to Desktop size window for fullscreen
+ The creation of a fullscreen window seems to fail on linux quite often and a
+ normal window still work fine. SDL2 allows to resize the window to the
+ complete screen in this situations as workaround.
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/api/vidext_sdl2_compat.h b/src/api/vidext_sdl2_compat.h
+index 85075e8337f80db881315fd0b5d43489f09f8b46..e832218d923336b00c91e7431da263cb896c164f 100644
+--- a/src/api/vidext_sdl2_compat.h
++++ b/src/api/vidext_sdl2_compat.h
+@@ -417,6 +417,13 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
+ SDL_VideoWindow =
+ SDL_CreateWindow(wm_title, window_x, window_y, width, height,
+ window_flags);
++ if (!SDL_VideoWindow && (flags & SDL_FULLSCREEN)) {
++ window_flags &= ~SDL_WINDOW_FULLSCREEN;
++ window_flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
++ SDL_VideoWindow =
++ SDL_CreateWindow(wm_title, window_x, window_y, width, height,
++ window_flags);
++ }
+ if (!SDL_VideoWindow) {
+ return NULL;
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 00f923a..66be2a5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -36,3 +36,4 @@ duplicates_cheatdb.patch
whitelist_cheatdb.patch
nfl_duplicates_cheatdb.patch
turok2_duplicates_cheatdb.patch
+sdl2_fullscreen_fallback.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-core.git
More information about the Pkg-games-commits
mailing list