-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Window size and dock positioning is 1 pixel off #288
Comments
It's hard to fix and it may simply be a bug in Qt. AFAIK, we don't really have an ETA for a fix, sorry... BTW:
|
I believe this has been fixed in the latest development build. (tested on windows 10). Let us know if you have any other issues. |
I have no idea how to reproduce this because it doesn't happen for me. |
I can't reproduce this, either (v1.2dev, git: e4545c9): |
Perhaps an outdated config is messing things up. Try using |
Silly question, but can you just drag the right edge of the window and make it smaller, thus eliminating the white space? |
Yes, something IS in the .cemu. I then wiped the config.ini and .ce file from c:\program files\cemu, as well as did I wipe c:\Users\username\Appdata\cemu-dev. I then started cemu again and Lo and Behold, Cemu started with the proper ROM and the window settings I prefer: LCD screen + keypad only. No initial welcome, no settings window. Another thing, was it not the plan to suppress or at least minimize the Windows Console during CEmu startup? |
Also, does this problem occur at other scale factors? I'd be interested to see if it goes away at a larger scale like 80% (or normal 100%), or if it gets worse at a smaller scale like 60%. |
Yes, I can take the window side and reduce its width so that the 2pix offset is gone. |
Correctly handling multiple configs, including portable ones, is hard ; these kinds of issues might never be fully solved :P
That's actually a setting (for Windows builds) if I remember correctly - what if you toggle it, is it gone or still there on the next restart? |
Whoops, I just skimmed the issue originally and didn't pick up on the fact that the positioning gets messed up only after a restart. Yeah, I can totally reproduce that. CEmu definitely has some issue that pushes docks around a tiny bit (usually making them slightly bigger) on startup. |
Unfortunately, I cannot try this with a higher screen scale. At a smaller scale (60%) the keypad also receives its 1-2 pixel offset. |
I enabled the Windows console, reduced it to a really small size AND positioned it underneath the CEmu window. Then I disabled it again. Upon the next start, the Windows console window opened in full size again, not under the CEmu window. |
Alright, that might be a bug for @alberthdev then. That said, I'm wondering if it's build-specific too (maybe not there for release versions?) |
When I write a substantial story, it's usually worth reading all of it ;-) |
Through some discussion on IRC, we're pretty sure we pinpointed the cause of the issue. It's a result of part of UI edit mode sneaking its way into the layout on startup even if you have UI edit mode disabled. We're not sure how to fix it (yet). |
... and apparently something related to the central widget spacer. It looks indeed like a pain to fix considering what we've tried already. |
Yeah, it does look like the LCD screen is positioned left aligned, wheras the Keypad is positioned at the center. Mix in some clever maths and rounding and the necessary window width needs some upward adjustment and the gap is created. |
I deleted the line that fixed it. Can someone add it back in: |
Well, my commit closed the issue but I guess you can wait for a few minutes and try jacobly's build again. |
Yup, looks like that fixed it to me. |
Dito. It looks like this morning's download of Jacobly's build does away with the pixel offset. |
What's wrong, and with what software version?
Operating System: Windows 10
CEmu version: CEmu v1.1.1 (git: 11df959)
Describe your issue:
Window size and dock positioning is 1 pixel off at each new start
What are the steps to reproduce this issue?
3.Restart the app an notice the keypad dock is 1 pixel off position and hence the window is 1 pixel wider showing white lines left of the keypad and richt of the screen
Any logs, error output, screenshot, other comments...?
See attached screen captures
The text was updated successfully, but these errors were encountered: