Skip to content
Snippets Groups Projects
  1. Oct 05, 2019
    • Philip Stewart's avatar
      fix(gfx/display): Draw partially clipped primitives · 14d5abcc
      Philip Stewart authored and rahix's avatar rahix committed
      Fix two bugs in the display/gfx module:
      
      1. The animation of the simple_menu used in the main menu had the issue
         that there is a black line visible at the top.  This is due the
         gfx_puts method ignoring lines, where the top pixel of the string is
         above the top of the screen.  As gfx_puts uses gfx_setpixel which in
         turn ignores pixels outside of the screen, remove the check in
         gfx_puts.
      2. X and Y coordinates were cast to unsigned-ints before being given to
         the gfx-library which means calls like circ(0, -10, 30) would be draw
         at coordinates like [0,65526].  Fix this by changing the data-type of
         all coordinates to signed-integers.
      
      Also remove the x and y ranges from the documentation of the individual
      python functions and instead add a general documentation about the
      screen and it's size/coordinate system.
      14d5abcc
  2. Oct 04, 2019
    • rahix's avatar
      fix(build): Fix module changes not getting picked up · d71a6cf8
      rahix authored
      
      Previously, we left out the dependency of the QSTR header on
      `modules.h`.  This was done to prevent rebuilds of the entire
      MicroPython sources whenever a Pycardium module is changed. This
      leads to issues where QSTRs got out of sync and weird errors like
      the following could happen:
      
          import foo_module
      
          Exception: No module `abc_def` (a different string than expected)
      
      Attempt to fix this by only updating the QSTR header when the
      module-header actually changes.  For this, a few workarounds are needed:
      
      - Replace symlinks with actual copied files so timestamps change on
        updates.
      - Add a hack so meson picks up on the dependency of the file in genhdr/
      - Rename the outer file so older meson versions don't complain about
        multiple targets with the same name.
      
      Co-authored-by: default avatardx <dequis@dequis.org>
      Signed-off-by: default avatarRahix <rahix@rahix.de>
      d71a6cf8
  3. Oct 03, 2019
  4. Oct 01, 2019
  5. Sep 14, 2019
  6. Sep 07, 2019
  7. Sep 06, 2019
  8. Sep 05, 2019
  9. Aug 31, 2019
  10. Aug 30, 2019
  11. Aug 28, 2019
  12. Aug 27, 2019
  13. Aug 24, 2019
    • dx's avatar
      gfx/Fonts: Remove unused chinese fonts · c8ba781f
      dx authored
      It only has 27 characters, which as far as I can tell are useless for
      actual chinese text.
      
      Copying the list of characters in the same order of font24CN.c into
      google trans gives out this almost meaningful message:
      
      > Hello, Microsoft Yahei, the corresponding dot matrix for this font is
      > Raspberry Pi Aabc Micro Snow Electronics
      c8ba781f
    • Stefan Haun's avatar
      gfx: Fix line drawing algorithm · 977b2498
      Stefan Haun authored
      Lines have been one pixel too short.
      977b2498
  14. Aug 22, 2019
  15. Aug 21, 2019
  16. Aug 20, 2019
Loading