Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • fix/macos-meta-files-in-menu
  • koalo/bhi160
  • genofire/ble-rewrite
  • rahix/simple_menu
  • ch3/splashscreen
  • koalo/bhi160-works-but-dirty
  • ios-workarounds
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • renze/hatchery_apps
  • schneider/fundamental-test
  • koalo/factory-reset
  • msgctl/gfx_rle
  • msgctl/faultscreen
  • msgctl/textbuffer_api
  • schneider/bonding
  • schneider/bootloader-update-9a0d158
  • schneider/bsec
  • rahix/bma
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
36 results

display.py

Forked from card10 / firmware
Source project has a limited visibility.
  • Philip Stewart's avatar
    14d5abcc
    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
    History
    fix(gfx/display): Draw partially clipped primitives
    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.