[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60165] trunk/blender/release/scripts/ startup/bl_ui/properties_game.py: partial bugfix: [#36501] Blenderplayer can not change video resolution in Mac OSX

Dalai Felinto dfelinto at gmail.com
Mon Sep 16 15:24:28 CEST 2013


Revision: 60165
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60165
Author:   dfelinto
Date:     2013-09-16 13:24:28 +0000 (Mon, 16 Sep 2013)
Log Message:
-----------
partial bugfix: [#36501] Blenderplayer can not change video resolution in Mac OSX
OSX support for native desktop resolution changing is not simple as for Windows or Linux.

The 'fix' here is at the interface level only.
Refer to the original bug report for the suggested native workaround, test patch and problems.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_game.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2013-09-16 13:18:35 UTC (rev 60164)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2013-09-16 13:24:28 UTC (rev 60165)
@@ -290,7 +290,9 @@
     COMPAT_ENGINES = {'BLENDER_GAME'}
 
     def draw(self, context):
+        import sys
         layout = self.layout
+        not_osx = sys.platform != "darwin"
 
         gs = context.scene.game_settings
 
@@ -301,15 +303,18 @@
         row = layout.row()
         row.label(text="Resolution:")
         row = layout.row(align=True)
+        row.active = not_osx or not gs.show_fullscreen
         row.prop(gs, "resolution_x", slider=False, text="X")
         row.prop(gs, "resolution_y", slider=False, text="Y")
         row = layout.row()
         col = row.column()
         col.prop(gs, "show_fullscreen")
-        col = row.column()
-        col.prop(gs, "use_desktop")
-        col.active = gs.show_fullscreen
 
+        if not_osx:
+            col = row.column()
+            col.prop(gs, "use_desktop")
+            col.active = gs.show_fullscreen
+
         col = layout.column()
         col.label(text="Quality:")
         col.prop(gs, "samples")




More information about the Bf-blender-cvs mailing list