return back mem_init()

git-svn-id: svn://kolibrios.org@7812 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2020-04-20 01:06:24 +00:00
parent a3563bcf26
commit 23edf2e721
2 changed files with 3 additions and 1 deletions

View File

@ -651,7 +651,7 @@ void ______INIT______()
screen.width = GetScreenWidth()+1; screen.width = GetScreenWidth()+1;
screen.height = GetScreenHeight()+1; screen.height = GetScreenHeight()+1;
__generator = GetStartTime(); __generator = GetStartTime();
//mem_init(); mem_init();
main(); main();
} }
______STOP______: ______STOP______:

View File

@ -78,12 +78,14 @@ struct llist
{ {
if (first == 0) return 0; if (first == 0) return 0;
if (first > wheel_size+1) first -= wheel_size; else first=0; if (first > wheel_size+1) first -= wheel_size; else first=0;
CheckDoesValuesOkey();
return 1; return 1;
} }
if (scroll_state == 1) if (scroll_state == 1)
{ {
if (visible + first == count) return 0; if (visible + first == count) return 0;
if (visible+first+wheel_size+1 > count) first = count - visible; else first+=wheel_size; if (visible+first+wheel_size+1 > count) first = count - visible; else first+=wheel_size;
CheckDoesValuesOkey();
return 1; return 1;
} }
return 0; return 0;