TempleOSTS_130707.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:45:45 +02:00
1 parent 17b71f1a2d
commit 1343005a29
617 files changed
+14399 -25130

No files matched your search

+36 -28
View File
@@ -26,13 +26,10 @@ public CTaskSettings *SettingsPush(CTask *task=NULL,I64 flags=0)
Suspend(task->animate_task);
task->animate_task=NULL;
if (doc=DocCur(task)) {
if (doc=DocPut(task)) {
tempse->cursor=!Bt(&doc->flags,DOCf_HIDE_CURSOR);
tempse->scroll=!Bt(&doc->flags,DOCf_NO_SCROLL_BARS);
tempse->doc_cur_attr=doc->start_text_attr;
}
if (doc=DocAux(task))
tempse->doc_aux_attr=doc->start_text_attr;
tempse->left=task->win_left;
tempse->right=task->win_right;
@@ -48,7 +45,10 @@ public CTaskSettings *SettingsPush(CTask *task=NULL,I64 flags=0)
tempse->win_max_refresh=task->win_max_refresh;
tempse->text_attr=task->text_attr;
StrCpy(tempse->task_title,task->task_title);
tempse->title_src =task->title_src;
tempse->border_attr=task->border_attr;
tempse->border_src =task->border_src;
tempse->border=!Bt(&task->display_flags,DISPLAYf_NO_BORDER);
tempse->preempt=Bt(&task->task_flags,TASKf_PREEMPT);
if (TaskValidate(ws_task))
@@ -61,10 +61,37 @@ public CTaskSettings *SettingsPush(CTask *task=NULL,I64 flags=0)
return tempse;
}
U0 SettingsPop2(CTask *task,CTaskSettings *tempse)
{
CDoc *doc;
if (doc=DocPut(task)) {
LBEqu(&doc->flags,DOCf_HIDE_CURSOR,!tempse->cursor);
LBEqu(&doc->flags,DOCf_NO_SCROLL_BARS,!tempse->scroll);
}
WinBorder(tempse->border,task);
SetWinHorz(tempse->left,tempse->right,task);
SetWinVert(tempse->top,tempse->bottom,task);
task->win_scroll_x=tempse->scroll_x;
task->win_scroll_y=tempse->scroll_y;
task->win_scroll_z=tempse->scroll_z;
MemCpy(&task->snap,&tempse->snap,sizeof(CSnap));
task->win_inhibit=tempse->win_inhibit;
task->win_max_refresh=tempse->win_max_refresh;
task->text_attr=tempse->text_attr;
task->border_attr=tempse->border_attr;
task->border_src =tempse->border_src;
task->title_src =tempse->title_src;
StrCpy(task->task_title,tempse->task_title);
WordStat(tempse->wordstat);
SetVGAPalette4(tempse->palette4);
Snd(0);
}
public U0 SettingsPop(CTask *task=NULL,I64 flags=0)
{
CTaskSettings *tempse;
CDoc *doc;
Bool old_preempt=Preempt(OFF);
if (!task) task=Fs;
if (!TaskValidate(task)) {
@@ -74,7 +101,6 @@ public U0 SettingsPop(CTask *task=NULL,I64 flags=0)
if (tempse=task->next_settings) {
task->next_settings=tempse->next;
task->draw_it=tempse->draw_it;
SetVGAPalette4(tempse->palette4);
task->task_end_cb=tempse->task_end_cb;
if (task->animate_task)
@@ -89,31 +115,13 @@ public U0 SettingsPop(CTask *task=NULL,I64 flags=0)
Suspend(task->song_task,FALSE);
}
if (doc=DocCur(task)) {
LBEqu(&doc->flags,DOCf_HIDE_CURSOR,!tempse->cursor);
LBEqu(&doc->flags,DOCf_NO_SCROLL_BARS,!tempse->scroll);
doc->start_text_attr=tempse->doc_cur_attr;
}
if (doc=DocAux(task))
doc->start_text_attr=tempse->doc_aux_attr;
WinBorder(tempse->border,task);
SetWinHorz(tempse->left,tempse->right,task);
SetWinVert(tempse->top,tempse->bottom,task);
task->win_scroll_x=tempse->scroll_x;
task->win_scroll_y=tempse->scroll_y;
task->win_scroll_z=tempse->scroll_z;
MemCpy(&task->snap,&tempse->snap,sizeof(CSnap));
task->win_inhibit=tempse->win_inhibit;
task->win_max_refresh=tempse->win_max_refresh;
task->text_attr=tempse->text_attr;
task->border_attr=tempse->border_attr;
WordStat(tempse->wordstat);
Snd(0);
Free(tempse);
SettingsPop2(task,tempse); //Do it to get results fast
WinMgrSync(,TRUE);
SettingsPop2(task,tempse); //Redo in case was lost by old update
Preempt(old_preempt);
LBEqu(&task->task_flags,TASKf_PREEMPT,tempse->preempt);
Free(tempse);
} else
Preempt(old_preempt);
}