Skip to content
Snippets Groups Projects
  1. Dec 14, 2024
  2. Sep 30, 2024
  3. Jul 22, 2024
  4. May 05, 2023
  5. May 03, 2023
    • nyanpasu64's avatar
      Fix hsync_start computation · 26164df0
      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: default avatarnyanpasu64 <nyanpasu64@tuta.io>
      Closes: #6
      
      
      Reviewed-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
      26164df0
  6. Jul 18, 2022
  7. Jun 21, 2022
  8. Apr 04, 2022
  9. Oct 27, 2021
  10. Oct 26, 2021
  11. Oct 22, 2021
  12. Aug 15, 2021
  13. Jul 28, 2021
  14. Jul 08, 2021
  15. Jun 26, 2021
  16. Jun 25, 2021
  17. Jun 22, 2021
  18. Mar 25, 2021
Loading