From 99b65dc3902c189a46cf9bfa9eda8f7a90a1fc7a Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 14 Mar 2014 00:17:11 +0000 Subject: [PATCH] HTMLv: small fix git-svn-id: svn://kolibrios.org@4644 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/HTMLv.c | 2 -- programs/cmm/browser/menu_rmb.h | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/programs/cmm/browser/HTMLv.c b/programs/cmm/browser/HTMLv.c index 7813ad25ee..59be0dd3ce 100644 --- a/programs/cmm/browser/HTMLv.c +++ b/programs/cmm/browser/HTMLv.c @@ -78,7 +78,6 @@ void main() int key, btn; int half_scroll_size; int scroll_used=0, show_menu; - int bufpointer_len; mem_Init(); CursorPointer.Load(#CursorFile); @@ -212,7 +211,6 @@ void main() ESI = http_transfer; bufpointer = ESI.http_msg.content_ptr; bufsize = ESI.http_msg.content_received; - bufpointer_len = strlen(bufpointer); http_free stdcall (http_transfer); http_transfer=0; Draw_Window(); // stop button => refresh button diff --git a/programs/cmm/browser/menu_rmb.h b/programs/cmm/browser/menu_rmb.h index 5ee8bc9aaf..7554b4f3ca 100644 --- a/programs/cmm/browser/menu_rmb.h +++ b/programs/cmm/browser/menu_rmb.h @@ -75,5 +75,9 @@ void DrawMenuList() } WriteText(18,N*menu.line_h+8,0x80,0x000000,ITEMS_LIST[N*2]); } - DrawBar(7, cur_encoding*menu.line_h+9, 4, 4, 0x444444); //show current encoding + if (cur_encoding!=_DEFAULT) + { + DrawBar(7, cur_encoding*menu.line_h+9, 4, 4, 0x444444); //show current encoding + } + else DrawBar(7, _DOS*menu.line_h+9, 4, 4, 0x444444); //show current encoding }