From 7ee94deaf58196d2ac86311b29759f55181626c1 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Mon, 16 Sep 2013 13:24:28 +0000 Subject: [PATCH] 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. --- release/scripts/startup/bl_ui/properties_game.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/release/scripts/startup/bl_ui/properties_game.py b/release/scripts/startup/bl_ui/properties_game.py index 025d86204f2..3470c9577af 100644 --- a/release/scripts/startup/bl_ui/properties_game.py +++ b/release/scripts/startup/bl_ui/properties_game.py @@ -290,7 +290,9 @@ class RENDER_PT_game_player(RenderButtonsPanel, Panel): COMPAT_ENGINES = {'BLENDER_GAME'} def draw(self, context): + import sys layout = self.layout + not_osx = sys.platform != "darwin" gs = context.scene.game_settings @@ -301,14 +303,17 @@ class RENDER_PT_game_player(RenderButtonsPanel, Panel): 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:")