Commits on Source (7)
-
nyanpasu64 authored
The CVT v1.2 specification says, in section 3.4.1 "Standard CRT-based Timing": > The Horizontal Sync Pulse duration will in all cases be set as closely > as possible to 8% of the Total Horizontal time, rounded down to the > nearest cell width. The previous code achieved this by first setting mode_info->hsync_end to a multiple of the cell width, then calculating mode_info->hsync_start and rounding its position up to a cell width. However, if mode_info->hsync_start was already a multiple of 8 (for example on 640x480@60), the rounding code would erroneously add 8 to it, shortening the hsync duration by 8 pixels. This commit fixes the bug by calculating and rounding the sync width separately, closer to the specification's wording. Signed-off-by: nyanpasu64 <nyanpasu64@tuta.io> Closes: #6 Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
26164df0 -
Previously the code erroneously used CVT_MIN_V_PORCH=3 instead of the specified CVT_MIN_V_BPORCH=6, when calculating the minimum size of the back porch in scanlines. As a result, when generating 320x240@60, the vtotal would be be incorrectly set to 252 instead of 253. This commit fixes the typo. Signed-off-by: nyanpasu64 <nyanpasu64@tuta.io> Closes: #7 Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
e1c7adb0 -
Signed-off-by: nyanpasu64 <nyanpasu64@tuta.io>
55aa4ae7 -
Peter Hutterer authored
We're not getting paid enough to use that many dollars. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Part-of: <!15>
0adc5fc8 -
Update the CI to add the template Security/SAST.gitlab-ci.yml as most of the other xorg projects do. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <!12>
922c7e1f -
Alan Coopersmith authored
../cvt/cvt.c:34:1: warning: no previous prototype for ‘cvt_is_standard’ [-Wmissing-prototypes] 34 | cvt_is_standard(int hdisplay, int vdisplay, float vrefresh, bool reduced, bool verbose) | ^~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
0e3d127e -
Alan Coopersmith authored
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>