forked from bartvdbraak/blender
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.
This commit is contained in:
parent
2676781a1c
commit
7ee94deaf5
@ -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:")
|
||||
|
Loading…
Reference in New Issue
Block a user