Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video is clipped if screen is in portrait orientation #18

Open
vsf6 opened this issue Apr 22, 2020 · 1 comment
Open

Video is clipped if screen is in portrait orientation #18

vsf6 opened this issue Apr 22, 2020 · 1 comment

Comments

@vsf6
Copy link

vsf6 commented Apr 22, 2020

Hi,
Thanks for your great samples.
I've encountered the following issue: my screen resolution is 1920x1080, but I work in portrait orientation, i.e. screen is vertical. When I resize the sample window or maximize it, the video area is clipped and everything that is below 1080 pixels from the top of the screen is just black. All I found is some thread about old games, that says that DirectX ignores orientation, renders off screen on a buffer that is horizontal and it's rotated by the video driver. That sounds reasonable and explains where is this 1080 limit comes for. But is there a way to fix this?

PS At the same time snapshot is fine - it contains bottom part that is black on the camera video. I.e. problem affects only video, not a snapshot.

@free5lot
Copy link
Owner

free5lot commented Apr 29, 2020

Actually I don't know, I don't use it on rotatable devices and not familiar with DirectX ignoring orientation. But it you solve it somehow eventually - please let everyone know or even provide PR if possible, it will be welcome.

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

No branches or pull requests

2 participants