From e63965353e7eb357734db055ddb97ef35a2551e1 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 2 Aug 2015 19:37:34 +0000 Subject: [PATCH] CMM: fix tmpdisk issue, fix typo in mouse_cfg git-svn-id: svn://kolibrios.org@5654 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/appearance/appearance.c | 32 ++++++++-------------------- programs/cmm/mouse_cfg/mouse_cfg.c | 2 +- programs/cmm/tmpdisk/t_gui.c | 19 +++++------------ 3 files changed, 15 insertions(+), 38 deletions(-) diff --git a/programs/cmm/appearance/appearance.c b/programs/cmm/appearance/appearance.c index 0da674e9d6..f75a33ff98 100644 --- a/programs/cmm/appearance/appearance.c +++ b/programs/cmm/appearance/appearance.c @@ -9,7 +9,7 @@ #include "..\lib\mem.h" #include "..\lib\strings.h" #include "..\lib\dll.h" -#include "..\lib\file_system.h" +#include "..\lib\io.h" #include "..\lib\list_box.h" #include "..\lib\gui.h" #include "..\lib\obj\box_lib.h" @@ -26,9 +26,8 @@ unsigned char icons[]= FROM "icons.raw"; - #define PANEL_H 30 -#define SKINS_STANDART_PATH "/kolibrios/res/skins" +#define SKINS_STANDART_PATH "/sys/skins" //"/kolibrios/res/skins" #define WALP_STANDART_PATH "/kolibrios/res/wallpapers" llist list[2]; @@ -39,7 +38,6 @@ char folder_path[4096]; char cur_file_path[4096]; char temp_filename[4096]; int files_mas[100]; -dword buf; int cur; @@ -48,22 +46,14 @@ proc_info Form; scroll_bar scroll1 = { 18,200,398, 44,18,0,115,15,0,0xeeeeee,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1}; -#include "other.h" - -//icons configurate, delete from list, delete from disk, make default -//remember current - void Open_Dir() { - int j, filesnum; - + int j; list[active].count = 0; - free(buf); - if (GetDir(#buf, #filesnum, #folder_path, DIRS_ONLYREAL)!=0) return; - - for (j=0; j0) DelDisk(); break; case 13: - OpenTmpDisk(); + if ( !asm test edit_disk_size.flags, 2) OpenTmpDisk(); + else AddDisk(); break; case 178: if (selected==0) break; @@ -138,10 +127,12 @@ void Main_Window() DrawTmpDisks(); break; } + EAX=key<<8; + edit_box_key stdcall(#edit_disk_size); break; case evReDraw: sc.get(); - DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.6",0); + DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.61",0); GetProcessInfo(#Form, SelfInfo); if (Form.status_window>2) break;