-
Notifications
You must be signed in to change notification settings - Fork 552
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
VBE Canvas - 1366x768 is "tilted" #3010
Comments
Also its not vmware, on real hardware it looks the same |
I haven't looked into this, but it looks like all implementations of For e.g. 1280x720, each scanline is 1280 pixels long - meaning that two consecutive scanlines are already aligned on a 4 (or even 8!) byte boundary. For 1366px-wide scan-lines, this is no longer the case, so it's very much likely the stride is different than the width. This could be fixed by making the formula for getting the position of a single pixel |
|
i think windows had this kind of problem too |
Update: its creating a 1368x768 canvas, but displaying 1366x768. Padding won't fix it because if you draw something on bottom two lines it is going to crash. Here are some examples if you add in VBECanvas driver (Cosmos.System2) a new mode 1368x768 and set1366x768x32 in vbe resolution (vmware does not support 1368!) |
Yes (at least on Rectify 11) |
That's right. Windows is solved by installing VMware tools, |
Area of Cosmos - What area of Cosmos are we dealing with?
VBE Canvas/Graphics - 1366x768
Expected Behaviour - What do you think that should happen?
It should render normally.
(SVGAII 1360x768; 1366 should be supported but its black
https://github.com/CosmosOS/Cosmos/blob/8adc6864c20ac616f05e8d85e17b47fd6d986db7/source/Cosmos.System2/Graphics/SVGAIICanvas.cs#L123C1-L123C38)
Actual Behaviour - What unexpectedly happens?
yep even rectangles (loading bar) are broken
Reproduction - How did you get this error to appear?
Just create a new 1366x768 VBE Canvas and draw something (a rectangle, bitmap, text, anything)
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
Devkit - latest c6155b9
The text was updated successfully, but these errors were encountered: