From 23edf2e7210cfd141b08fb81e30eb93c25c1d644 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 20 Apr 2020 01:06:24 +0000 Subject: [PATCH] return back mem_init() git-svn-id: svn://kolibrios.org@7812 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/kolibri.h | 2 +- programs/cmm/lib/list_box.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/cmm/lib/kolibri.h b/programs/cmm/lib/kolibri.h index 73584634e2..fdf98ec1b4 100644 --- a/programs/cmm/lib/kolibri.h +++ b/programs/cmm/lib/kolibri.h @@ -651,7 +651,7 @@ void ______INIT______() screen.width = GetScreenWidth()+1; screen.height = GetScreenHeight()+1; __generator = GetStartTime(); - //mem_init(); + mem_init(); main(); } ______STOP______: diff --git a/programs/cmm/lib/list_box.h b/programs/cmm/lib/list_box.h index 8c833e7250..31615003cd 100644 --- a/programs/cmm/lib/list_box.h +++ b/programs/cmm/lib/list_box.h @@ -78,12 +78,14 @@ struct llist { if (first == 0) return 0; if (first > wheel_size+1) first -= wheel_size; else first=0; + CheckDoesValuesOkey(); return 1; } if (scroll_state == 1) { if (visible + first == count) return 0; if (visible+first+wheel_size+1 > count) first = count - visible; else first+=wheel_size; + CheckDoesValuesOkey(); return 1; } return 0;