Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Remote desktop can default to 1:1 ratio #1139

Open
nil-ref opened this issue Mar 15, 2023 · 2 comments
Open

Remote desktop can default to 1:1 ratio #1139

nil-ref opened this issue Mar 15, 2023 · 2 comments

Comments

@nil-ref
Copy link

nil-ref commented Mar 15, 2023

Problem description

I hope that when remote desktop starts, the size of the picbox can be adjusted to match the remote resolution.

Proposal

int screenWidth = Screen.PrimaryScreen.Bounds.Width;
int screenHeight = Screen.PrimaryScreen.Bounds.Height;
if(screenWidth > d.Resolution.Width && screenHeight > d.Resolution.Height)
this.ClientSize = new Size(d.Resolution.Width, d.Resolution.Height);

Additional context

No response

@Subjoel
Copy link

Subjoel commented Jun 22, 2023

yes pls, i have the issue when testing that only a part of their screen is shown

@Subjoel
Copy link

Subjoel commented Jun 22, 2023

make it a pull request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants