1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-09-19 21:43:40 +01:00

Increase accuracy of scrollbar

This commit is contained in:
Such Meme, Many Skill 2020-05-02 19:51:04 +02:00
parent c45be1258a
commit a146a38af7

View file

@ -170,8 +170,8 @@ void gfx_drawScrollBar(int minView, int maxView, int count){
if (curScrollCount >= count) if (curScrollCount >= count)
return; return;
int barSize = (703 * (curScrollCount * 100 / count)) / 100; u32 barSize = (703 * (curScrollCount * 1000 / count)) / 1000;
int offsetSize = (703 * (minView * 100/ count)) / 100; u32 offsetSize = (703 * (minView * 1000 / count)) / 1000;
gfx_boxGrey(740, 16, 755, 702, 0x1B); gfx_boxGrey(740, 16, 755, 702, 0x1B);
if ((16 + barSize + offsetSize) > 702) if ((16 + barSize + offsetSize) > 702)