feat: revise/refactor #124 , inc patch num

This commit is contained in:
GutPuncher 2024-03-11 02:52:35 -04:00
parent d418e325e4
commit fca34d8b3d
No known key found for this signature in database
GPG key ID: 38CE0A7B6841D1C7
5 changed files with 12 additions and 32 deletions

View file

@ -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;
}

View file

@ -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;

View file

@ -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);

View file

@ -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;

View file

@ -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);