Files
TempleOS-Rijn/SparrowOS/Demo/ScreenCodes.CPP
T
2018-09-08 21:45:28 +02:00

26 lines
695 B
C++

//See $LK,"ExtScreenCodes","FA:::/SparrowOS/Adam/Gr/GrScreen.CPP.Z,ExtScreenCodes"$ for the format
//of the U32 you pass to PlotWinU8()
//See $LK,"::/SparrowOS/Demo/ExtendedChars.CPP.Z","FI:::/SparrowOS/Demo/ExtendedChars.CPP.Z"$
//and $LK,"::/SparrowOS/Demo/Graphics/FontEd.CPP.Z","FI:::/SparrowOS/Demo/Graphics/FontEd.CPP.Z"$.
//Hold ALT and press a 3 digit decimal number
//or press <CTRL-ALT-A>.
U0 DrawIt(CTask *task,CDC *)
{
I64 i;
for (i=0;i<256;i++)
PlotWinU8(task,i+BLACK<<12+WHITE<<8,(i&15)*2,(i/16)*2);
}
U0 ScreenCodes()
{
SettingsPush; //See $LK,"SettingsPush","MN:SettingsPush"$
DocClear;
Fs->draw_it=&DrawIt;
GetChar(NULL,FALSE);
SettingsPop;
}
ScreenCodes;