| Summary: | [KMS/DRM] Disable cursor position correction since it's not needed anymore. FIX included. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Manuel Alfayate Corchete <redwindwanderer> |
| Component: | video | Assignee: | Manuel Alfayate Corchete <redwindwanderer> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.15 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: | Disables cursor position correction because all windows are fullscreen now. | ||
|
Description
Manuel Alfayate Corchete
2021-02-05 00:53:26 UTC
Looks good! Wait, what happens if the window that is created doesn't actually match an available resolution? If I create a 1024x512 window, for example? Or 512x1024? @Sam Ín that case, the display's native resolution is used: https://hg.libsdl.org/SDL/file/60b9ce4ee73e/src/video/kmsdrm/SDL_kmsdrmvideo.c#l1201 ...but aspect ratio is not guaranteed to be correct, that's all. Normally in a case like that we would set the correct aspect ratio and use black bars on the sides. Is that possible here? (In reply to Sam Lantinga from comment #4) > Normally in a case like that we would set the correct aspect ratio and use > black bars on the sides. Is that possible here? No, that's no possible without planes. And that's because, without planes, the buffer presented on screen AND the video mode must match (if they don't, the CRTC would be reading out of bounds, or not having enough pixels to read, and in both cases the DRM system would show us it's middle finger. If I had received 1 euro for each time I got that in my face, I would be rich by now). Okay, go ahead and commit. We may revisit this in the future if we re-add optional support for planes, etc. @Sam. Ok, commit done. Closing this. Reopening this, since you did not include the commit in the bug report. Sorry! I did the opposite: I included the bug on the commit, instead of including the commit on the bug. XD Closing this via commit https://hg.libsdl.org/SDL/rev/fe9a63c67fc5 Closing this via commit: https://hg.libsdl.org/SDL/rev/fe9a63c67fc5 |