monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
630 stars 145 forks source link

some screen functions don't accept fractional coordinates #311

Closed artfwo closed 6 years ago

artfwo commented 6 years ago

cairo supports fractional coordinates in between pixels, perhaps we should too. currently strict integer checking in some functions results in errors like this:

stack traceback:
    [C]: in function 's_move_rel'
    /home/pi/norns/lua/screen.lua:168: in function 's_text_center'
    /home/pi/norns/lua/screen.lua:121: in function 'screen.text_center'
    (...tail calls...)

affected functions:

tehn commented 6 years ago

agreed, i also ran into this yesterday while menu-fixing.