mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-28 08:16:31 +00:00
234 lines
22 KiB
HTML
Executable file
234 lines
22 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V1.01">
|
|
<style type="text/css">
|
|
body {background-color:#fef1f0;}
|
|
.cF0{color:#000000;background-color:#fef1f0;}
|
|
.cF1{color:#0148a4;background-color:#fef1f0;}
|
|
.cF2{color:#3b7901;background-color:#fef1f0;}
|
|
.cF3{color:#057c7e;background-color:#fef1f0;}
|
|
.cF4{color:#bb2020;background-color:#fef1f0;}
|
|
.cF5{color:#9e42ae;background-color:#fef1f0;}
|
|
.cF6{color:#b57901;background-color:#fef1f0;}
|
|
.cF7{color:#b2b6af;background-color:#fef1f0;}
|
|
.cF8{color:#555753;background-color:#fef1f0;}
|
|
.cF9{color:#678fbb;background-color:#fef1f0;}
|
|
.cFA{color:#82bc49;background-color:#fef1f0;}
|
|
.cFB{color:#0097a2;background-color:#fef1f0;}
|
|
.cFC{color:#e26a6a;background-color:#fef1f0;}
|
|
.cFD{color:#c671bc;background-color:#fef1f0;}
|
|
.cFE{color:#c7ab00;background-color:#fef1f0;}
|
|
.cFF{color:#fef1f0;background-color:#fef1f0;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<a name="l1"></a><span class=cF9>I64</span><span class=cF0> sc_1, sc_2;
|
|
<a name="l2"></a>
|
|
<a name="l3"></a>#</span><span class=cF1>define</span><span class=cF0> DROPS_NUM </span><span class=cFE>0x2000</span><span class=cF0>
|
|
<a name="l4"></a>
|
|
<a name="l5"></a></span><span class=cF1>class</span><span class=cF0> Drop
|
|
<a name="l6"></a>{
|
|
<a name="l7"></a> </span><span class=cF9>I32</span><span class=cF0> x, y;
|
|
<a name="l8"></a>} drops[DROPS_NUM];
|
|
<a name="l9"></a>
|
|
<a name="l10"></a></span><span class=cF9>CDC</span><span class=cF0> *cur_dc;
|
|
<a name="l11"></a>
|
|
<a name="l12"></a></span><span class=cF1>U0</span><span class=cF0> DrawFrame(</span><span class=cF9>CTask</span><span class=cF0> *task, </span><span class=cF9>CDC</span><span class=cF0> *dc)
|
|
<a name="l13"></a>{
|
|
<a name="l14"></a> </span><span class=cF9>I64</span><span class=cF0> w = task->pix_width, h = task->pix_height, cx = w >> </span><span class=cFE>1</span><span class=cF0>, cy = h >> </span><span class=cFE>1</span><span class=cF0>;
|
|
<a name="l15"></a>
|
|
<a name="l16"></a> dc->color = </span><span class=cF3>LTRED</span><span class=cF0>;
|
|
<a name="l17"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, cx - </span><span class=cFE>20</span><span class=cF0>, cy - </span><span class=cFE>50</span><span class=cF0>, cx, cy - </span><span class=cFE>150</span><span class=cF0>);
|
|
<a name="l18"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, cx + </span><span class=cFE>20</span><span class=cF0>, cy - </span><span class=cFE>50</span><span class=cF0>, cx, cy - </span><span class=cFE>150</span><span class=cF0>);
|
|
<a name="l19"></a>
|
|
<a name="l20"></a> dc->color = </span><span class=cF3>LTRED</span><span class=cF0>;
|
|
<a name="l21"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, cx - </span><span class=cFE>100</span><span class=cF0>, cy - </span><span class=cFE>100</span><span class=cF0>, cx, cy);
|
|
<a name="l22"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, cx + </span><span class=cFE>100</span><span class=cF0>, cy - </span><span class=cFE>100</span><span class=cF0>, cx, cy);
|
|
<a name="l23"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap, sc_1</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l24"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l25"></a> dc->color = </span><span class=cF3>WHITE</span><span class=cF0>;
|
|
<a name="l26"></a> </span><span class=cF5>GrRect</span><span class=cF0>(dc, cx - </span><span class=cFE>2</span><span class=cF0>, cy - </span><span class=cFE>2</span><span class=cF0>, </span><span class=cFE>5</span><span class=cF0>, </span><span class=cFE>5</span><span class=cF0>);
|
|
<a name="l27"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l28"></a> dc->color = </span><span class=cF3>BLACK</span><span class=cF0>;
|
|
<a name="l29"></a> </span><span class=cF5>GrPrint</span><span class=cF0>(dc, cx + </span><span class=cFE>10</span><span class=cF0>, cy, </span><span class=cF6>"Press '1'"</span><span class=cF0>);
|
|
<a name="l30"></a>
|
|
<a name="l31"></a> dc->color = </span><span class=cF3>LTRED</span><span class=cF0>;
|
|
<a name="l32"></a> </span><span class=cF5>GrRect</span><span class=cF0>(dc, cx - </span><span class=cFE>20</span><span class=cF0>, cy + </span><span class=cFE>60</span><span class=cF0>, </span><span class=cFE>41</span><span class=cF0>, </span><span class=cFE>21</span><span class=cF0>);
|
|
<a name="l33"></a>
|
|
<a name="l34"></a> dc->color = </span><span class=cF3>LTRED</span><span class=cF0>;
|
|
<a name="l35"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, cx - </span><span class=cFE>200</span><span class=cF0>, cy, cx, cy + </span><span class=cFE>100</span><span class=cF0>);
|
|
<a name="l36"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, cx + </span><span class=cFE>200</span><span class=cF0>, cy, cx, cy + </span><span class=cFE>100</span><span class=cF0>);
|
|
<a name="l37"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cFB>kbd</span><span class=cF0>.down_bitmap, sc_2</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l38"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l39"></a> dc->color = </span><span class=cF3>WHITE</span><span class=cF0>;
|
|
<a name="l40"></a> </span><span class=cF5>GrRect</span><span class=cF0>(dc, cx - </span><span class=cFE>2</span><span class=cF0>, cy + </span><span class=cFE>100</span><span class=cF0> - </span><span class=cFE>2</span><span class=cF0>, </span><span class=cFE>5</span><span class=cF0>, </span><span class=cFE>5</span><span class=cF0>);
|
|
<a name="l41"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l42"></a> dc->color = </span><span class=cF3>BLACK</span><span class=cF0>;
|
|
<a name="l43"></a> </span><span class=cF5>GrPrint</span><span class=cF0>(dc, cx + </span><span class=cFE>10</span><span class=cF0>, cy + </span><span class=cFE>100</span><span class=cF0>, </span><span class=cF6>"Press '2'"</span><span class=cF0>);
|
|
<a name="l44"></a>
|
|
<a name="l45"></a> dc->color = </span><span class=cF3>LTRED</span><span class=cF0>;
|
|
<a name="l46"></a> </span><span class=cF5>GrLine</span><span class=cF0>(dc, cx + </span><span class=cFE>400</span><span class=cF0>, cy + </span><span class=cFE>100</span><span class=cF0>, cx - </span><span class=cFE>250</span><span class=cF0>, cy + </span><span class=cFE>200</span><span class=cF0>);
|
|
<a name="l47"></a>}
|
|
<a name="l48"></a>
|
|
<a name="l49"></a></span><span class=cF1>U0</span><span class=cF0> DrawDrops(</span><span class=cF9>CTask</span><span class=cF0> *, </span><span class=cF9>CDC</span><span class=cF0> *dc)
|
|
<a name="l50"></a>{
|
|
<a name="l51"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l52"></a>
|
|
<a name="l53"></a> dc->color = </span><span class=cF3>BLUE</span><span class=cF0>;
|
|
<a name="l54"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i < DROPS_NUM; i++)
|
|
<a name="l55"></a> </span><span class=cF1>if</span><span class=cF0> (drops[i].y >= </span><span class=cFE>0</span><span class=cF0> && </span><span class=cF5>GrPeek</span><span class=cF7>(</span><span class=cF0>dc, drops[i].x, drops[i].y</span><span class=cF7>)</span><span class=cF0> == </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l56"></a> </span><span class=cF5>GrPlot</span><span class=cF0>(dc, drops[i].x, drops[i].y);
|
|
<a name="l57"></a>}
|
|
<a name="l58"></a>
|
|
<a name="l59"></a></span><span class=cF1>U0</span><span class=cF0> UpdateCurBase(</span><span class=cF9>CTask</span><span class=cF0> *task, </span><span class=cF9>CDC</span><span class=cF0> *dc)
|
|
<a name="l60"></a>{
|
|
<a name="l61"></a> cur_dc->color = </span><span class=cF3>ROP_EQU</span><span class=cF0>;
|
|
<a name="l62"></a> dc->flags |= </span><span class=cF3>DCF_NO_TRANSPARENTS</span><span class=cF0>;
|
|
<a name="l63"></a> </span><span class=cF5>GrBlot</span><span class=cF0>(cur_dc, -task->pix_left - task->scroll_x, -task->pix_top - task->scroll_y, dc);
|
|
<a name="l64"></a> dc->flags &= ~</span><span class=cF3>DCF_NO_TRANSPARENTS</span><span class=cF0>;
|
|
<a name="l65"></a>}
|
|
<a name="l66"></a>
|
|
<a name="l67"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DrawIt</span><span class=cF0>(</span><span class=cF9>CTask</span><span class=cF0> *task, </span><span class=cF9>CDC</span><span class=cF0> *dc)
|
|
<a name="l68"></a>{
|
|
<a name="l69"></a> DrawFrame(task, dc);
|
|
<a name="l70"></a> DrawDrops(task, dc);
|
|
<a name="l71"></a> UpdateCurBase(task, dc);
|
|
<a name="l72"></a>}
|
|
<a name="l73"></a>
|
|
<a name="l74"></a></span><span class=cF1>U0</span><span class=cF0> AnimateTask(</span><span class=cF9>I64</span><span class=cF0>)
|
|
<a name="l75"></a>{
|
|
<a name="l76"></a> </span><span class=cF9>I64</span><span class=cF0> i, j, cur_drop = </span><span class=cFE>0</span><span class=cF0>, c1, c2, x0, y0, x1, y1, w, h;
|
|
<a name="l77"></a>
|
|
<a name="l78"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l79"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l80"></a> w = </span><span class=cF5>Fs</span><span class=cF0>->parent_task->pix_width;
|
|
<a name="l81"></a> h = </span><span class=cF5>Fs</span><span class=cF0>->parent_task->pix_height;
|
|
<a name="l82"></a>
|
|
<a name="l83"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i < </span><span class=cFE>2</span><span class=cF0>; i++)
|
|
<a name="l84"></a> {
|
|
<a name="l85"></a> j = </span><span class=cFE>0</span><span class=cF0>;
|
|
<a name="l86"></a> </span><span class=cF1>do</span><span class=cF0>
|
|
<a name="l87"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l88"></a> </span><span class=cF1>if</span><span class=cF0> (++cur_drop >= DROPS_NUM)
|
|
<a name="l89"></a> cur_drop = </span><span class=cFE>0</span><span class=cF0>;
|
|
<a name="l90"></a> </span><span class=cF1>if</span><span class=cF0> (drops[cur_drop].y < </span><span class=cFE>0</span><span class=cF0>)
|
|
<a name="l91"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l92"></a> j++;
|
|
<a name="l93"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l94"></a> </span><span class=cF1>while</span><span class=cF0> (j <= DROPS_NUM);
|
|
<a name="l95"></a>
|
|
<a name="l96"></a> drops[cur_drop].x = </span><span class=cF5>RandU32</span><span class=cF0>%w;
|
|
<a name="l97"></a> drops[cur_drop].y = </span><span class=cFE>0</span><span class=cF0>;
|
|
<a name="l98"></a> }
|
|
<a name="l99"></a>
|
|
<a name="l100"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i < DROPS_NUM; i++)
|
|
<a name="l101"></a> {
|
|
<a name="l102"></a> </span><span class=cF1>if</span><span class=cF0> (drops[i].y >= </span><span class=cFE>0</span><span class=cF0>)
|
|
<a name="l103"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l104"></a> </span><span class=cF1>if</span><span class=cF0> (drops[i].y >= h - </span><span class=cFE>1</span><span class=cF0>)
|
|
<a name="l105"></a> drops[i].y = -</span><span class=cF3>I32_MAX</span><span class=cF0>;
|
|
<a name="l106"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l107"></a> {
|
|
<a name="l108"></a> x0 = x1 = drops[i].x;
|
|
<a name="l109"></a> y0 = y1 = drops[i].y;
|
|
<a name="l110"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>GrPeek</span><span class=cF7>(</span><span class=cF0>cur_dc, x0, y0 + </span><span class=cFE>1</span><span class=cF7>)</span><span class=cF0> == </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l111"></a> y1++;
|
|
<a name="l112"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l113"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l114"></a> c1 = </span><span class=cF5>GrPeek</span><span class=cF0>(cur_dc, x0 + </span><span class=cFE>1</span><span class=cF0>, y0);
|
|
<a name="l115"></a> c2 = </span><span class=cF5>GrPeek</span><span class=cF0>(cur_dc, x0 - </span><span class=cFE>1</span><span class=cF0>, y0);
|
|
<a name="l116"></a> </span><span class=cF1>if</span><span class=cF0> (c1 == </span><span class=cF3>WHITE</span><span class=cF0> && c2 != </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l117"></a> x1++;
|
|
<a name="l118"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (c2 == </span><span class=cF3>WHITE</span><span class=cF0> && c1 != </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l119"></a> x1--;
|
|
<a name="l120"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (c1 == </span><span class=cF3>WHITE</span><span class=cF0> && c2 == </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l121"></a> {
|
|
<a name="l122"></a> c1 = </span><span class=cF5>GrPeek</span><span class=cF0>(cur_dc, x0 + </span><span class=cFE>1</span><span class=cF0>, y0 + </span><span class=cFE>1</span><span class=cF0>);
|
|
<a name="l123"></a> c2 = </span><span class=cF5>GrPeek</span><span class=cF0>(cur_dc, x0 - </span><span class=cFE>1</span><span class=cF0>, y0 + </span><span class=cFE>1</span><span class=cF0>);
|
|
<a name="l124"></a> </span><span class=cF1>if</span><span class=cF0> (c1 == </span><span class=cF3>WHITE</span><span class=cF0> && c2 != </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l125"></a> x1++;
|
|
<a name="l126"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (c2 == </span><span class=cF3>WHITE</span><span class=cF0> && c1 != </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l127"></a> x1--;
|
|
<a name="l128"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>RandI16</span><span class=cF0> >= </span><span class=cFE>0</span><span class=cF0>)
|
|
<a name="l129"></a> x1++;
|
|
<a name="l130"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l131"></a> x1--;
|
|
<a name="l132"></a> }
|
|
<a name="l133"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>GrPeek</span><span class=cF7>(</span><span class=cF0>cur_dc, x1, y1 + </span><span class=cFE>1</span><span class=cF7>)</span><span class=cF0> == </span><span class=cF3>WHITE</span><span class=cF0>)
|
|
<a name="l134"></a> y1++;
|
|
<a name="l135"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l136"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>GrPeek</span><span class=cF7>(</span><span class=cF0>cur_dc, x0, y0</span><span class=cF7>)</span><span class=cF0> == </span><span class=cF3>BLUE</span><span class=cF0>)
|
|
<a name="l137"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l138"></a> cur_dc->color = </span><span class=cF3>WHITE</span><span class=cF0>;
|
|
<a name="l139"></a> </span><span class=cF5>GrPlot</span><span class=cF0>(cur_dc, x0, y0);
|
|
<a name="l140"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l141"></a> cur_dc->color = </span><span class=cF3>BLUE</span><span class=cF0>;
|
|
<a name="l142"></a> </span><span class=cF5>GrPlot</span><span class=cF0>(cur_dc, x1, y1);
|
|
<a name="l143"></a> drops[i].x = x1;
|
|
<a name="l144"></a> drops[i].y = y1;
|
|
<a name="l145"></a> }
|
|
<a name="l146"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l147"></a> }
|
|
<a name="l148"></a> </span><span class=cF5>Sleep</span><span class=cF0>(</span><span class=cFE>10</span><span class=cF0>);
|
|
<a name="l149"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l150"></a>}
|
|
<a name="l151"></a>
|
|
<a name="l152"></a></span><span class=cF1>U0</span><span class=cF0> Init()
|
|
<a name="l153"></a>{
|
|
<a name="l154"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l155"></a>
|
|
<a name="l156"></a> </span><span class=cF5>MemSet</span><span class=cF0>(drops, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF0>drops</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l157"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i < DROPS_NUM;i ++)
|
|
<a name="l158"></a> drops[i].y = -</span><span class=cF3>I32_MAX</span><span class=cF0>;
|
|
<a name="l159"></a>}
|
|
<a name="l160"></a>
|
|
<a name="l161"></a></span><span class=cF1>U0</span><span class=cF0> RainDrops()
|
|
<a name="l162"></a>{
|
|
<a name="l163"></a> </span><span class=cF9>I64</span><span class=cF0> ch, sc;
|
|
<a name="l164"></a>
|
|
<a name="l165"></a> </span><span class=cF5>MenuPush</span><span class=cF0>( </span><span class=cF6>"File {"</span><span class=cF0>
|
|
<a name="l166"></a> </span><span class=cF6>" Abort(,CH_SHIFT_ESC);"</span><span class=cF0>
|
|
<a name="l167"></a> </span><span class=cF6>" Exit(,CH_ESC);"</span><span class=cF0>
|
|
<a name="l168"></a> </span><span class=cF6>"}"</span><span class=cF0>
|
|
<a name="l169"></a> </span><span class=cF6>"Play {"</span><span class=cF0>
|
|
<a name="l170"></a> </span><span class=cF6>" Restart(,'\n');"</span><span class=cF0>
|
|
<a name="l171"></a> </span><span class=cF6>" OpenUpper(,'1');"</span><span class=cF0>
|
|
<a name="l172"></a> </span><span class=cF6>" OpenLower(,'2');"</span><span class=cF0>
|
|
<a name="l173"></a> </span><span class=cF6>"}"</span><span class=cF0>
|
|
<a name="l174"></a> );
|
|
<a name="l175"></a> </span><span class=cF5>SettingsPush</span><span class=cF0>; </span><span class=cF2>//See </span><a href="https://zeal-operating-system.github.io/ZealOS/System/TaskSettings.CC.html#l3"><span class=cF4>SettingsPush</span></a><span class=cF0>
|
|
<a name="l176"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>;
|
|
<a name="l177"></a> </span><span class=cF5>WinBorder</span><span class=cF0>;
|
|
<a name="l178"></a> </span><span class=cF5>WinMax</span><span class=cF0>;
|
|
<a name="l179"></a> </span><span class=cF5>DocCursor</span><span class=cF0>;
|
|
<a name="l180"></a> </span><span class=cF5>DocClear</span><span class=cF0>;
|
|
<a name="l181"></a> cur_dc = </span><span class=cF5>DCNew</span><span class=cF0>(</span><span class=cF3>GR_WIDTH</span><span class=cF0>, </span><span class=cF3>GR_HEIGHT</span><span class=cF0>);
|
|
<a name="l182"></a> sc_1 = </span><span class=cF5>Char2ScanCode</span><span class=cF0>(</span><span class=cF6>'1'</span><span class=cF0>);
|
|
<a name="l183"></a> sc_2 = </span><span class=cF5>Char2ScanCode</span><span class=cF0>(</span><span class=cF6>'2'</span><span class=cF0>);
|
|
<a name="l184"></a> Init;
|
|
<a name="l185"></a> </span><span class=cF5>Fs</span><span class=cF0>->animate_task = </span><span class=cF5>Spawn</span><span class=cF0>(&AnimateTask, </span><span class=cF3>NULL</span><span class=cF0>, </span><span class=cF6>"Animate"</span><span class=cF0>,, </span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l186"></a> </span><span class=cF5>Fs</span><span class=cF0>->draw_it = &</span><span class=cF5>DrawIt</span><span class=cF0>;
|
|
<a name="l187"></a> </span><span class=cF1>try</span><span class=cF0>
|
|
<a name="l188"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l189"></a> </span><span class=cF1>do</span><span class=cF0>
|
|
<a name="l190"></a> </span><span class=cF1>switch</span><span class=cF0> (ch = </span><span class=cF5>KeyGet</span><span class=cF7>(</span><span class=cF0>&sc</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l191"></a> {
|
|
<a name="l192"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'\n'</span><span class=cF0>:
|
|
<a name="l193"></a> Init;
|
|
<a name="l194"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l195"></a> }
|
|
<a name="l196"></a> </span><span class=cF1>while</span><span class=cF0> (ch != </span><span class=cF3>CH_ESC</span><span class=cF0> && ch != </span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l197"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l198"></a> </span><span class=cF1>catch</span><span class=cF0>
|
|
<a name="l199"></a> </span><span class=cF5>PutExcept</span><span class=cF0>;
|
|
<a name="l200"></a> </span><span class=cF5>SettingsPop</span><span class=cF0>;
|
|
<a name="l201"></a> </span><span class=cF5>MenuPop</span><span class=cF0>;
|
|
<a name="l202"></a> </span><span class=cF5>DCDel</span><span class=cF0>(cur_dc);
|
|
<a name="l203"></a>}
|
|
<a name="l204"></a>
|
|
<a name="l205"></a>RainDrops;
|
|
</span></pre></body>
|
|
</html>
|