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

Effectively disconnecting and re-connecting screens results in unexpected projections placement #312

Open
repsej2003 opened this issue Jan 7, 2025 · 8 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@repsej2003
Copy link

Bug Description
There is a problem when scaling the image up, so in case having a to displays a1080p and a 2160p. Everything works fine when having the main window on the 4k screen, but if i swap the window to the small display, the scale and position is wrong. But if I change the display settings on the computer, so the 4k display is acting like a 1080p display, then there is no problem at all.

Expected behavior
The display should be centered and scale correct.

Detailed description of display configuration (if applicable)
a extertnal 4k screen and a 1080p build in laptop screen.

Same problem have been observed on a different computer

In the state where it fails, with scaling enabled
image
Without scaling enabled
image
the screen shots are not perfect, windows does some thing weird when taking Fullscreen screen shots

Device information

  • QPrompt Version: 1.1.6
  • Operating System: Windows 11
@Cuperino
Copy link
Owner

Cuperino commented Jan 7, 2025

Hi @repsej2003,

Thank you for taking your time to file this bug report. The code involved with screen projections has been rewritten to a great extent for QPrompt 2.0. This issue is likely no longer present as a result of that. Would you mind attempting to replicate this issue using our latest beta?

The most recent beta build can be found here: https://www.patreon.com/posts/117098443 I apologize for the fact that it lacks a proper installer. Follow the instructions on the second to last paragraph to execute QPrompt.

@videosmith
Copy link

videosmith commented Jan 7, 2025

@repsej2003 Probably not the issue, however have you been able to verify the 4k monitor is actually receiving a 4k signal from your computer? Some graphics cards will enlarge a 1080 image to a 4k size and crop it so it fits in a 1080 output.

@videosmith
Copy link

Not certain if this helps, attempted to recreate with QPrompt 1.2r6 EA. RPi 400, Bookworm, 1080 primary, 2160 secondary.
Tried with QPrompt app on either screen, projecting to the other.
Top has Qprompt windowed, projecting and scaled to the other monitor.
Middle has QPrompt max windowed.
Bottom has QPrompt in prompt mode.

screens

@Cuperino
Copy link
Owner

Cuperino commented Jan 8, 2025

@videosmith Thanks. QPrompt 1.2 EA 6 however uses the old implementation for screen projections, meaning it should produce the same results as @repsej2003's test on 1.1.6. To validate whether the issue has been fixed or not, one must test using QPrompt 2.0 beta 6 or later on Windows. 2.0 beta 6 is the build I linked repsej2003 to.

My Windows 11 install, the one I use to build QPrompt, runs from a virtual machine. Meaning I can't test this bug without borrowing someone else's computer. That's not a problem, but given time limitations I'll keep focusing on the broken Mac build for now.

@videosmith
Copy link

Ok, was thinking it may be specific to his OS....

@Cuperino
Copy link
Owner

Cuperino commented Jan 8, 2025

That's a possibility too, it might be specific to Windows. However, it's also probable that QPrompt 2.0s implementation has already fixed the issue.

@repsej2003
Copy link
Author

I just tried the version you send me.
Now when i have the main window on my laptop display, it works perfect scaling up to the 4k monitor.

But if I swap to have the main window on the 4k display, it correctly disable the display in the screens drop down, but when i turn on projection on my laptop display, it actually displays it on the 4k monitor, on top of the main window. See screenshots
the first right before turning on display 1 (my laptop)
The second when i have turned it one, but actually shows the projection one the 4k monitor.
image

image

I don't think this is a scaling problem, i think there is a windows problem with screen problem.

How i came about all this, was trying to have 3 projection screens and one screen to control from.
I also tested this with this new version, the first two projection works fine, but the third, does not work. Nothing appears on it when enabled.

Thank you for making and maintain this software.

@Cuperino
Copy link
Owner

Thanks for testing it using the latest version. I will mark this as a bug for now and look into in a while, after I'm done with the broken Mac build.

@Cuperino Cuperino self-assigned this Jan 11, 2025
@Cuperino Cuperino added the bug Something isn't working label Jan 11, 2025
@Cuperino Cuperino added this to QPrompt Jan 11, 2025
@github-project-automation github-project-automation bot moved this to Uncategorized Issues in QPrompt Jan 11, 2025
@Cuperino Cuperino moved this from Uncategorized Issues to Bugs in QPrompt Jan 11, 2025
@Cuperino Cuperino added this to the 2.1 milestone Jan 11, 2025
@Cuperino Cuperino changed the title Scaling Issues Effectively disconnecting and re-connecting screens results in unexpected projections placement Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Bugs
Development

No branches or pull requests

3 participants