mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-24 22:50:28 +00:00
feat: revise/refactor #124 , inc patch num
This commit is contained in:
parent
d418e325e4
commit
fca34d8b3d
5 changed files with 12 additions and 32 deletions
|
@ -1,29 +0,0 @@
|
|||
I64 initialWinBottom = sys_task->win_bottom;
|
||||
CDoc *initialDisplayDoc = sys_task->display_doc;
|
||||
|
||||
U0 Yuugure()
|
||||
{
|
||||
// Hide SysLog
|
||||
if (sys_task->win_bottom != 0) {
|
||||
while(sys_task->win_bottom > -1){
|
||||
sys_task->win_bottom--;
|
||||
Sleep(20);
|
||||
}
|
||||
|
||||
sys_task->display_doc = NULL;
|
||||
WinBorder(OFF, sys_task);
|
||||
}
|
||||
// Show SysLog
|
||||
else {
|
||||
WinBorder(ON, sys_task);
|
||||
sys_task->display_doc = initialDisplayDoc;
|
||||
|
||||
while(sys_task->win_bottom != initialWinBottom){
|
||||
sys_task->win_bottom++;
|
||||
Sleep(20);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WinZBufUpdate;
|
||||
}
|
|
@ -114,9 +114,9 @@ Bool MyPutKey(I64 ch, I64 sc)
|
|||
if (!(sc & SCF_SHIFT))
|
||||
{
|
||||
if (sc & SCF_KEY_DESC)
|
||||
KeyDescSet("Cmd /Yuugure");
|
||||
KeyDescSet("Cmd /SysLogToggle");
|
||||
else
|
||||
Yuugure;
|
||||
SysLogToggle;
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
|
|
|
@ -504,6 +504,14 @@ I64 Sys(U8 *format, ...)
|
|||
return res;
|
||||
}
|
||||
|
||||
U0 SysLogToggle()
|
||||
{
|
||||
if (Bt(&sys_task->display_flags, DISPLAYf_SHOW))
|
||||
LBtr(&sys_task->display_flags, DISPLAYf_SHOW);
|
||||
else
|
||||
LBts(&sys_task->display_flags, DISPLAYf_SHOW);
|
||||
}
|
||||
|
||||
U0 SysLog(U8 *format, ...)
|
||||
{//Display text in sys_task.
|
||||
U8 *buf = StrPrintJoin(NULL, format, argc, argv);
|
||||
|
|
|
@ -14,7 +14,7 @@ U8 *rev_bits_table; //Table with U8 bits reversed
|
|||
CDate local_time_offset;
|
||||
F64 *pow10_I64,
|
||||
sys_os_version = 2.03;
|
||||
U64 sys_os_version_sub = 114;
|
||||
U64 sys_os_version_sub = 115;
|
||||
U8 *sys_os_version_str;
|
||||
U8 *sys_os_version_full;
|
||||
U8 *sys_os_version_nice;
|
||||
|
|
|
@ -437,6 +437,7 @@ public extern I64 Scale2Mem(I64 min, I64 max, I64 limit=2*1024*1024*1024);
|
|||
public extern U0 SysErr( U8 *format, ...);
|
||||
public extern U0 SysWarn(U8 *format, ...);
|
||||
public extern U0 SysLog( U8 *format, ...);
|
||||
public extern U0 SysLogToggle();
|
||||
public extern I64 ExeCmdLine(CCompCtrl *cc);
|
||||
public extern U0 JobDel(CJob *tmpc);
|
||||
public extern I64 JobsHandler(I64 run_flags, CTask *task=NULL);
|
||||
|
|
Loading…
Reference in a new issue