From 5080442b18638cd64f437c7389f2e8392a42ce9d Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 19 Mar 2015 13:54:21 +0000 Subject: [PATCH] Fix panels_cfg git-svn-id: svn://kolibrios.org@5533 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/panels_cfg/compile_en.bat | 3 +++ programs/cmm/panels_cfg/compile_ru.bat | 10 ++++++++++ programs/cmm/panels_cfg/panels_cfg.c | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 programs/cmm/panels_cfg/compile_ru.bat diff --git a/programs/cmm/panels_cfg/compile_en.bat b/programs/cmm/panels_cfg/compile_en.bat index 9ba367052d..51a3050b3e 100644 --- a/programs/cmm/panels_cfg/compile_en.bat +++ b/programs/cmm/panels_cfg/compile_en.bat @@ -1,3 +1,6 @@ +@del lang.h-- +@echo #define LANG_ENG 1 >lang.h-- + @del panels_cfg cls c-- panels_cfg.c diff --git a/programs/cmm/panels_cfg/compile_ru.bat b/programs/cmm/panels_cfg/compile_ru.bat new file mode 100644 index 0000000000..f95268a5ee --- /dev/null +++ b/programs/cmm/panels_cfg/compile_ru.bat @@ -0,0 +1,10 @@ +@del lang.h-- +@echo #define LANG_RUS 1 >lang.h-- + +@del panels_cfg +cls +c-- panels_cfg.c +@rename panels_cfg.com panels_cfg +@kpack panels_cfg +@del warning.txt +@pause \ No newline at end of file diff --git a/programs/cmm/panels_cfg/panels_cfg.c b/programs/cmm/panels_cfg/panels_cfg.c index b03828547d..3db6c99853 100644 --- a/programs/cmm/panels_cfg/panels_cfg.c +++ b/programs/cmm/panels_cfg/panels_cfg.c @@ -173,7 +173,7 @@ void DrawWindowContent() frame_draw stdcall (#taskbar_frame); DefineButton(22, taskbar_frame.start_y + 12, panels_img.w-1, 27-1, 100 + BT_HIDE, 0); _PutImage(22, taskbar_frame.start_y + 12, 37, 27, taskbar_cfg.Attachment * 37 * 27 * 3 + panels_img.data); - WriteText(68, taskbar_frame.start_y + 20, 0x80, work_text, CHANGE_POS); + WriteText(68, taskbar_frame.start_y + 20, 0x80, sc.work_text, CHANGE_POS); PanelCfg_CheckBox(22, taskbar_frame.start_y + 48, 105, SOFTEN_UP, taskbar_cfg.SoftenUp); PanelCfg_CheckBox(22, taskbar_frame.start_y + 68, 106, SOFTEN_DOWN, taskbar_cfg.SoftenDown); PanelCfg_CheckBox(22, taskbar_frame.start_y + 88, 107, MIN_LEFT_BUTTON, taskbar_cfg.MinLeftButton); @@ -190,7 +190,7 @@ void DrawWindowContent() frame_draw stdcall (#docky_frame); DefineButton(22, docky_frame.start_y + 12, panels_img.w-1, 27-1, 200 + BT_HIDE, 0); _PutImage(22, docky_frame.start_y + 12, 37, 27, docky_cfg.location + 1 * 37 * 27 * 3 + panels_img.data); - WriteText(68, docky_frame.start_y + 20, 0x80, work_text, CHANGE_POS); + WriteText(68, docky_frame.start_y + 20, 0x80, sc.work_text, CHANGE_POS); PanelCfg_CheckBox(22, docky_frame.start_y + 48, 201, FSIZE, docky_cfg.fsize); PanelCfg_CheckBox(win_center_x, docky_frame.start_y + 48, 202, ASHOW, docky_cfg.ashow);