perf: rdp 设置分辨率不生效问题

pull/10498/head
Eric 2023-05-18 19:06:51 +08:00 committed by Jiangjie.Bai
parent a17fa5a518
commit 31600ba66c
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ class RDPFileClientProtocolURLMixin:
if width and height:
rdp_options['desktopwidth:i'] = width
rdp_options['desktopheight:i'] = height
rdp_options['winposstr:s:'] = f'0,1,0,0,{width},{height}'
rdp_options['winposstr:s'] = f'0,1,0,0,{width},{height}'
rdp_options['dynamic resolution:i'] = '0'
# 设置其他选项
rdp_options['session bpp:i'] = os.getenv('JUMPSERVER_COLOR_DEPTH', '32')