mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Renamed to WallPaperDolDoc
This commit is contained in:
parent
aa1e541729
commit
f9565c6df6
3 changed files with 28 additions and 29 deletions
|
@ -1,28 +0,0 @@
|
||||||
U0 (*old_wall_paper)(CTask *task);
|
|
||||||
CDoc *wallpaper_doc;
|
|
||||||
|
|
||||||
U0 WallPaperAnsiInit(I64 filepath="::/Home/Wallpapers/Default.DD")
|
|
||||||
{
|
|
||||||
// if (Fs != sys_task)
|
|
||||||
// {
|
|
||||||
// "\nMust be System Included. (SHIFT-F5 / RightClick->System Include) \n";
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
old_wall_paper = gr.fp_wall_paper;
|
|
||||||
wallpaper_doc = DocRead(filepath, DOCF_DBL_DOLLARS | DOCF_NO_CURSOR);
|
|
||||||
|
|
||||||
sys_winmgr_task->display_doc = wallpaper_doc;
|
|
||||||
|
|
||||||
if (gr_palette[0] > gr_palette[15])
|
|
||||||
Fs->text_attr = WHITE << 4 + WHITE;
|
|
||||||
else
|
|
||||||
Fs->text_attr = BLACK << 4 + BLACK;
|
|
||||||
|
|
||||||
|
|
||||||
wallpaper_doc->win_task = sys_winmgr_task;
|
|
||||||
|
|
||||||
// gr.fp_wall_paper = &WallPaperAnsi;
|
|
||||||
}
|
|
||||||
|
|
||||||
// WallPaperAnsiInit;
|
|
||||||
// WallInit;
|
|
26
src/Demo/Graphics/WallPaperDolDoc.ZC
Executable file
26
src/Demo/Graphics/WallPaperDolDoc.ZC
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
U0 (*old_wall_paper)(CTask *task);
|
||||||
|
CDoc *wallpaper_doc;
|
||||||
|
|
||||||
|
U0 WallPaperDolDocInit(I64 filepath="::/Home/Wallpapers/Default.DD")
|
||||||
|
{
|
||||||
|
if (Fs != sys_task)
|
||||||
|
{
|
||||||
|
"\nMust be System Included. (SHIFT-F5 / RightClick->System Include) \n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
old_wall_paper = gr.fp_wall_paper;
|
||||||
|
wallpaper_doc = DocRead(filepath, DOCF_DBL_DOLLARS | DOCF_NO_CURSOR);
|
||||||
|
|
||||||
|
sys_winmgr_task->display_doc = wallpaper_doc;
|
||||||
|
DocCursor(OFF);
|
||||||
|
|
||||||
|
// if (gr_palette[0] > gr_palette[15])
|
||||||
|
// Fs->text_attr = WHITE << 4 + WHITE;
|
||||||
|
// else
|
||||||
|
// Fs->text_attr = BLACK << 4 + BLACK;
|
||||||
|
|
||||||
|
|
||||||
|
wallpaper_doc->win_task = sys_winmgr_task;
|
||||||
|
|
||||||
|
// gr.fp_wall_paper = &WallPaperDD;
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue