From ba7d211fb2cfe2c43fe6dc9dfc5549b211aaa215 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 4 Jan 2021 13:17:12 +0000 Subject: [PATCH] Quark 0.91: 10 times decrease mem usage (thanks turbocat for a found issue) git-svn-id: svn://kolibrios.org@8511 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/quark/data.h | 2 +- programs/cmm/quark/prepare_page.h | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/programs/cmm/quark/data.h b/programs/cmm/quark/data.h index a5c001caba..a8ee45753c 100644 --- a/programs/cmm/quark/data.h +++ b/programs/cmm/quark/data.h @@ -52,7 +52,7 @@ Try to open some text file."; char copied_chars[] = "Copied %i chars"; -char about[] = "Quark Text v0.9 +char about[] = "Quark Text v0.91 Author: Kiril Lipatov aka Leency Website: http://aspero.pro diff --git a/programs/cmm/quark/prepare_page.h b/programs/cmm/quark/prepare_page.h index 7f10ee2b06..54ebe7c777 100644 --- a/programs/cmm/quark/prepare_page.h +++ b/programs/cmm/quark/prepare_page.h @@ -3,11 +3,8 @@ void ParseAndPaint() { list.count=0; selection.cancel(); - + if (list.w != canvas.bufw) canvas.Init(list.x, list.y, list.w, screen.height); Parse(); - - list.visible = list.h / list.item_h; - canvas.Init(list.x, list.y, list.w, list.visible+1*list.item_h); DrawPage(); }