summaryrefslogtreecommitdiff
path: root/sys/src/libdraw/emenuhit.c
AgeCommit message (Collapse)Author
2013-06-18libdraw: avoid moving cursor if we dont have to for menuhitcinap_lenrek
depending on the font, poping the menu would move your cursor one pixel down each time (due to division). this is annoying when using a trackpoint and trying to repeat some operation over 9000 times. the cursor should only be moved when the menu is repositioned to contain it on the screen.
2013-01-08libdraw: fix wrong menusel() calculation for menuhit() (noticable with small ↵cinap_lenrek
fonts) the text for a menu entry is drawn from: y = textr.min.y + i*(font->height+Vspacing); but we calculated the item from: r = insetrect(textr); i = (p.y - r.min.y) / (font->height+Vspacing); the insetrect is wrong.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen