summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/xbmc-svn/xbmc-safe-fullscreen.patch
blob: 2da0c91300535055143efeafc21c18d1b05c6bf8 (plain)
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
28
29
30
31
32
33
34
35
Index: xbmc/Application.cpp
===================================================================
--- xbmc/Application.cpp	(revision 20059)
+++ xbmc/Application.cpp	(working copy)
@@ -877,6 +877,8 @@
 #endif
 
   // set GUI res and force the clear of the screen
+  if (g_guiSettings.GetBool("videoscreen.safefull"))
+    g_guiSettings.m_LookAndFeelResolution = AUTORES;
   g_graphicsContext.SetVideoResolution(g_guiSettings.m_LookAndFeelResolution, TRUE, true);
 
 #ifdef _WIN32PC
@@ -953,6 +955,9 @@
   time(&seconds);
   srand((unsigned int)seconds);
 
+  if (g_guiSettings.GetBool("videoscreen.safefull"))
+    g_graphicsContext.ToggleFullScreenRoot();
+
   return CXBApplicationEx::Create(hWnd);
 }
 
Index: GUISettings.cpp
===================================================================
--- xbmc/GUISettings.cpp	(revision 20824)
+++ xbmc/GUISettings.cpp	(working copy)
@@ -651,6 +651,7 @@
 #else
   AddInt(6, "videoscreen.vsync", 13105, DEFAULT_VSYNC, VSYNC_DISABLED, 1, VSYNC_DRIVER, SPIN_CONTROL_TEXT);
 #endif
+  AddBool(7, "videoscreen.safefull", 13121, false);
   AddCategory(7, "filelists", 14018);
   AddBool(1, "filelists.hideparentdiritems", 13306, false);
   AddBool(2, "filelists.hideextensions", 497, false);