mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-26 05:42:07 +00:00
Increase accuracy of scrollbar
This commit is contained in:
parent
c45be1258a
commit
a146a38af7
1 changed files with 2 additions and 2 deletions
|
@ -170,8 +170,8 @@ void gfx_drawScrollBar(int minView, int maxView, int count){
|
|||
if (curScrollCount >= count)
|
||||
return;
|
||||
|
||||
int barSize = (703 * (curScrollCount * 100 / count)) / 100;
|
||||
int offsetSize = (703 * (minView * 100/ count)) / 100;
|
||||
u32 barSize = (703 * (curScrollCount * 1000 / count)) / 1000;
|
||||
u32 offsetSize = (703 * (minView * 1000 / count)) / 1000;
|
||||
|
||||
gfx_boxGrey(740, 16, 755, 702, 0x1B);
|
||||
if ((16 + barSize + offsetSize) > 702)
|
||||
|
|
Loading…
Reference in a new issue