2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html;charset=US-ASCII" >
2021-10-27 08:28:16 +01:00
< meta name = "generator" content = "ZealOS V1.04" >
2021-07-03 05:07:57 +01:00
< style type = "text/css" >
2021-10-08 07:06:11 +01:00
body {background-color:#1f1f1f;}
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
.cF1{color:#4f84a6;background-color:#1f1f1f;}
.cF2{color:#73a255;background-color:#1f1f1f;}
.cF3{color:#297582;background-color:#1f1f1f;}
.cF4{color:#b34f4b;background-color:#1f1f1f;}
.cF5{color:#8a52c3;background-color:#1f1f1f;}
.cF6{color:#b7822f;background-color:#1f1f1f;}
.cF7{color:#444444;background-color:#1f1f1f;}
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
.cF9{color:#94bfde;background-color:#1f1f1f;}
.cFA{color:#a1ce97;background-color:#1f1f1f;}
.cFB{color:#6db4be;background-color:#1f1f1f;}
.cFC{color:#e88e88;background-color:#1f1f1f;}
.cFD{color:#ca94e8;background-color:#1f1f1f;}
.cFE{color:#d4b475;background-color:#1f1f1f;}
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
2021-07-03 05:07:57 +01:00
< / style >
< / head >
< body >
2021-07-05 01:12:38 +01:00
< pre style = "font-family:monospace;font-size:12pt" >
2021-07-03 05:07:57 +01:00
< a name = "l1" > < / a > < span class = cF0 > #< / span > < span class = cF1 > help_index< / span > < span class = cF0 > < / span > < span class = cF6 > " Graphics/Screen" < / span > < span class = cF0 >
< a name = "l2" > < / a >
< a name = "l3" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrUpdateTaskODEs< / span > < span class = cF0 > (< / span > < span class = cF9 > CTask< / span > < span class = cF0 > *task)
< a name = "l4" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l5" > < / a > < / span > < span class = cFB > sys_task_being_screen_updated< / span > < span class = cF0 > = task;
< a name = "l6" > < / a > < / span > < span class = cF1 > try< / span > < span class = cF0 >
< a name = "l7" > < / a > < / span > < span class = cF5 > ODEsUpdate< / span > < span class = cF0 > (task);
< a name = "l8" > < / a > < / span > < span class = cF1 > catch< / span > < span class = cF0 >
< a name = "l9" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l10" > < / a > < / span > < span class = cF5 > LBts< / span > < span class = cF0 > (& task-> win_inhibit, < / span > < span class = cF3 > WIf_SELF_ODE< / span > < span class = cF0 > );
< a name = "l11" > < / a > < / span > < span class = cF6 > " Exception in WinMgr: Update Task ODEs\n" < / span > < span class = cF0 > ;
< a name = "l12" > < / a > < / span > < span class = cF5 > PutExcept< / span > < span class = cF0 > ;
< a name = "l13" > < / a > < / span > < span class = cF5 > Sleep< / span > < span class = cF0 > (< / span > < span class = cFE > 3000< / span > < span class = cF0 > );
< a name = "l14" > < / a > < / span > < span class = cF5 > LFBFlush< / span > < span class = cF0 > ;
< a name = "l15" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l16" > < / a > < / span > < span class = cFB > sys_task_being_screen_updated< / span > < span class = cF0 > = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l17" > < / a > }
< a name = "l18" > < / a >
< a name = "l19" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrUpdateTaskWin< / span > < span class = cF0 > (< / span > < span class = cF9 > CTask< / span > < span class = cF0 > *task)
< a name = "l20" > < / a > { < / span > < span class = cF2 > //Draw a win. Only Core0 tasks have a win.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l21" > < / a > < / span > < span class = cF9 > CDC< / span > < span class = cF0 > *dc;
< a name = "l22" > < / a > < / span > < span class = cF9 > CD3I64< / span > < span class = cF0 > saved_scroll;
2021-07-03 05:07:57 +01:00
< a name = "l23" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l24" > < / a > < / span > < span class = cFB > sys_task_being_screen_updated< / span > < span class = cF0 > = task;
< a name = "l25" > < / a > < / span > < span class = cF1 > try< / span > < span class = cF0 >
< a name = "l26" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l27" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cF0 > & task-> display_flags, < / span > < span class = cF3 > DISPLAYf_NO_BORDER< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l28" > < / a > < / span > < span class = cF5 > TextBorder< / span > < span class = cF0 > (< / span > < span class = cF5 > Fs< / span > < span class = cF0 > , task-> win_left, task-> win_right, task-> win_top, task-> win_bottom,
< a name = "l29" > < / a > task-> border_attr, task == < / span > < span class = cFB > sys_focus_task< / span > < span class = cF0 > );
2021-07-03 05:07:57 +01:00
< a name = "l30" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l31" > < / a > < / span > < span class = cF5 > TextRect< / span > < span class = cF0 > (task-> win_left, task-> win_right, task-> win_top, task-> win_bottom, task-> text_attr < < < / span > < span class = cFE > 8< / span > < span class = cF0 > );
< a name = "l32" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (task == < / span > < span class = cFB > sys_winmgr_task< / span > < span class = cF0 > )
< a name = "l33" > < / a > {
< a name = "l34" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .fp_wall_paper)
< a name = "l35" > < / a > (*< / span > < span class = cFB > gr< / span > < span class = cF0 > .fp_wall_paper)(task);
< a name = "l36" > < / a > }
< a name = "l37" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF7 > (< / span > < span class = cF0 > task-> win_inhibit & < / span > < span class = cF3 > WIF_SELF_DOC< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l38" > < / a > < / span > < span class = cF5 > DocUpdateTaskDocs< / span > < span class = cF0 > (task);
< a name = "l39" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > TaskValidate< / span > < span class = cF7 > (< / span > < span class = cF0 > task< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l40" > < / a > {
< a name = "l41" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (task-> draw_it)
< a name = "l42" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l43" > < / a > dc = < / span > < span class = cF5 > DCAlias< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2, task);
< a name = "l44" > < / a > (*task-> draw_it)(task, dc);
< a name = "l45" > < / a > < / span > < span class = cF5 > DCDel< / span > < span class = cF0 > (dc);
< a name = "l46" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l47" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > TaskValidate< / span > < span class = cF7 > (< / span > < span class = cF0 > task< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l48" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l49" > < / a > < / span > < span class = cF5 > WinScrollNull< / span > < span class = cF0 > (task, & saved_scroll);
< a name = "l50" > < / a > < / span > < span class = cF5 > DrawCtrls< / span > < span class = cF0 > (task);
< a name = "l51" > < / a > < / span > < span class = cF5 > WinScrollRestore< / span > < span class = cF0 > (task, & saved_scroll);
< a name = "l52" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l53" > < / a > }
< a name = "l54" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l55" > < / a > < / span > < span class = cF1 > catch< / span > < span class = cF0 >
< a name = "l56" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l57" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (task != < / span > < span class = cF5 > Fs< / span > < span class = cF0 > & & < / span > < span class = cF5 > TaskValidate< / span > < span class = cF7 > (< / span > < span class = cF0 > task< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l58" > < / a > {
< a name = "l59" > < / a > < / span > < span class = cF5 > LBtr< / span > < span class = cF0 > (& task-> display_flags, < / span > < span class = cF3 > DISPLAYf_SHOW< / span > < span class = cF0 > );
< a name = "l60" > < / a > < / span > < span class = cF6 > " Exception in WinMgr: Update Task Win\n" < / span > < span class = cF0 > ;
< a name = "l61" > < / a > < / span > < span class = cF5 > PutExcept< / span > < span class = cF0 > ;
< a name = "l62" > < / a > < / span > < span class = cF5 > Sleep< / span > < span class = cF0 > (< / span > < span class = cFE > 3000< / span > < span class = cF0 > );
< a name = "l63" > < / a > < / span > < span class = cF5 > LFBFlush< / span > < span class = cF0 > ;
< a name = "l64" > < / a > }
< a name = "l65" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l66" > < / a > < / span > < span class = cFB > sys_task_being_screen_updated< / span > < span class = cF0 > = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l67" > < / a > }
< a name = "l68" > < / a >
< a name = "l69" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrUpdateTasks< / span > < span class = cF0 > ()
< a name = "l70" > < / a > {< / span > < span class = cF2 > //Only called by WinMgr< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l71" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i;
< a name = "l72" > < / a > < / span > < span class = cF9 > CTask< / span > < span class = cF0 > *task, *task1;
2021-07-03 05:07:57 +01:00
< a name = "l73" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l74" > < / a > < / span > < span class = cF1 > try< / span > < span class = cF0 >
< a name = "l75" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l76" > < / a > < / span > < span class = cFB > winmgr< / span > < span class = cF0 > .ode_time = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l77" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cF0 > & < / span > < span class = cFB > sys_semas< / span > < span class = cF0 > [< / span > < span class = cF3 > SEMA_UPDATE_WIN_Z_BUF< / span > < span class = cF0 > ], < / span > < span class = cFE > 0< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l78" > < / a > < / span > < span class = cF5 > WinZBufUpdate< / span > < span class = cF0 > ;
< a name = "l79" > < / a > task1 = task = < / span > < span class = cFB > sys_winmgr_task< / span > < span class = cF0 > ;
< a name = "l80" > < / a > < / span > < span class = cF1 > do< / span > < span class = cF0 >
< a name = "l81" > < / a > { < / span > < span class = cF2 > //Loop through Core0 tasks.< / span > < span class = cF0 >
< a name = "l82" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > TaskValidate< / span > < span class = cF7 > (< / span > < span class = cF0 > task< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l83" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l84" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cF0 > & task-> display_flags, < / span > < span class = cF3 > DISPLAYf_SHOW< / span > < span class = cF7 > )< / span > < span class = cF0 > & & < / span > < span class = cF5 > Bt< / span > < span class = cF7 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .win_uncovered_bitmap, task-> win_z_num< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l85" > < / a > < / span > < span class = cF5 > GrUpdateTaskWin< / span > < span class = cF0 > (task);
< a name = "l86" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > TaskValidate< / span > < span class = cF7 > (< / span > < span class = cF0 > task< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l87" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l88" > < / a > task = task-> next_task;
< a name = "l89" > < / a > }
< a name = "l90" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (task != task1);
2021-07-03 05:07:57 +01:00
< a name = "l91" > < / a >
2021-07-04 23:11:34 +01:00
< a name = "l92" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < < / span > < span class = cFB > mp_count< / span > < span class = cF0 > ; i++)
< a name = "l93" > < / a > { < / span > < span class = cF2 > //Loop through all cores.< / span > < span class = cF0 >
< a name = "l94" > < / a > task1 = task = < / span > < span class = cFB > cpu_structs< / span > < span class = cF0 > [i].executive_task;
< a name = "l95" > < / a > < / span > < span class = cF1 > do< / span > < span class = cF0 >
< a name = "l96" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l97" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > TaskValidate< / span > < span class = cF7 > (< / span > < span class = cF0 > task< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l98" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l99" > < / a > < / span > < span class = cF5 > GrUpdateTaskODEs< / span > < span class = cF0 > (task);
< a name = "l100" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (!< / span > < span class = cF5 > TaskValidate< / span > < span class = cF7 > (< / span > < span class = cF0 > task< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l101" > < / a > < / span > < span class = cF1 > break< / span > < span class = cF0 > ;
< a name = "l102" > < / a > task = task-> next_task;
< a name = "l103" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l104" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (task != task1);
< a name = "l105" > < / a > }
< a name = "l106" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l107" > < / a > < / span > < span class = cF1 > catch< / span > < span class = cF0 >
< a name = "l108" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l109" > < / a > < / span > < span class = cF5 > PutExcept< / span > < span class = cF0 > (< / span > < span class = cF3 > FALSE< / span > < span class = cF0 > );
< a name = "l110" > < / a > < / span > < span class = cF5 > Debug< / span > < span class = cF0 > (< / span > < span class = cF6 > " Exception in WinMgr" < / span > < span class = cF0 > );
< a name = "l111" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l112" > < / a > < / span > < span class = cFB > winmgr< / span > < span class = cF0 > .last_ode_time = < / span > < span class = cFB > winmgr< / span > < span class = cF0 > .ode_time;
< a name = "l113" > < / a > < / span > < span class = cFB > ode_alloced_factor< / span > < span class = cF0 > = < / span > < span class = cF5 > LowPass1< / span > < span class = cF0 > (< / span > < span class = cFE > 0< / span > < span class = cF0 > .< / span > < span class = cFE > 1< / span > < span class = cF0 > , < / span > < span class = cFB > ode_alloced_factor< / span > < span class = cF0 > , < / span > < span class = cF5 > Clamp< / span > < span class = cF7 > (< / span > < span class = cF5 > Gs< / span > < span class = cF0 > -> idle_factor - < / span > < span class = cFE > 0< / span > < span class = cF0 > .< / span > < span class = cFE > 1< / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > .< / span > < span class = cFE > 2< / span > < span class = cF0 > , < / span > < span class = cFE > 0< / span > < span class = cF0 > .< / span > < span class = cFE > 8< / span > < span class = cF7 > )< / span > < span class = cF0 > , < / span > < span class = cFE > 1< / span > < span class = cF0 > / < / span > < span class = cFB > winmgr< / span > < span class = cF0 > .fps);
< a name = "l114" > < / a > < / span > < span class = cFB > sys_task_being_screen_updated< / span > < span class = cF0 > = < / span > < span class = cF3 > NULL< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l115" > < / a > }
< a name = "l116" > < / a >
< a name = "l117" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrFixZoomScale< / span > < span class = cF0 > ()
< a name = "l118" > < / a > {
2021-07-04 23:11:34 +01:00
< a name = "l119" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom = < / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom, < / span > < span class = cFE > 1< / span > < span class = cF0 > , < / span > < span class = cF3 > GR_SCREEN_ZOOM_MAX< / span > < span class = cF0 > );
< a name = "l120" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom == < / span > < span class = cFE > 1< / span > < span class = cF0 > )
< a name = "l121" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l122" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .sx = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l123" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .sy = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l124" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l125" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l126" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l127" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .sx = < / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .sx, < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cF3 > GR_WIDTH< / span > < span class = cF0 > - < / span > < span class = cF3 > GR_WIDTH< / span > < span class = cF0 > / < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom) & ~< / span > < span class = cFE > 7< / span > < span class = cF0 > ;
< a name = "l128" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .sy = < / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .sy, < / span > < span class = cFE > 0< / span > < span class = cF0 > , < / span > < span class = cF3 > GR_HEIGHT< / span > < span class = cF0 > - < / span > < span class = cF3 > GR_HEIGHT< / span > < span class = cF0 > / < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom);
< a name = "l129" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
2021-07-03 05:07:57 +01:00
< a name = "l130" > < / a > }
< a name = "l131" > < / a >
< a name = "l132" > < / a > < / span > < span class = cF1 > public< / span > < span class = cF0 > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrScaleZoom< / span > < span class = cF0 > (< / span > < span class = cF1 > F64< / span > < span class = cF0 > scale)
< a name = "l133" > < / a > {< / span > < span class = cF2 > //Multiply zoom factor larger or smaller.< / span > < span class = cF0 >
2021-07-04 23:11:34 +01:00
< a name = "l134" > < / a > < / span > < span class = cF1 > F64< / span > < span class = cF0 > s = < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom;
2021-07-03 05:07:57 +01:00
< a name = "l135" > < / a >
2021-09-22 04:45:45 +01:00
< a name = "l136" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom = < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom * scale;
2021-07-04 23:11:34 +01:00
< a name = "l137" > < / a > < / span > < span class = cF5 > GrFixZoomScale< / span > < span class = cF0 > ;
< a name = "l138" > < / a > s /= < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom;
< a name = "l139" > < / a > < / span > < span class = cFB > mouse< / span > < span class = cF0 > .scale.x *= s;
< a name = "l140" > < / a > < / span > < span class = cFB > mouse< / span > < span class = cF0 > .scale.y *= s;
< a name = "l141" > < / a > < / span > < span class = cFB > mouse< / span > < span class = cF0 > .scale.z *= s;
< a name = "l142" > < / a > < / span > < span class = cFB > mouse< / span > < span class = cF0 > .< / span > < span class = cF1 > offset< / span > < span class = cF0 > .x = < / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.x - (< / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.x - < / span > < span class = cFB > mouse< / span > < span class = cF0 > .< / span > < span class = cF1 > offset< / span > < span class = cF0 > .x) * s;
< a name = "l143" > < / a > < / span > < span class = cFB > mouse< / span > < span class = cF0 > .< / span > < span class = cF1 > offset< / span > < span class = cF0 > .y = < / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.y - (< / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.y - < / span > < span class = cFB > mouse< / span > < span class = cF0 > .< / span > < span class = cF1 > offset< / span > < span class = cF0 > .y) * s;
< a name = "l144" > < / a > < / span > < span class = cFB > mouse< / span > < span class = cF0 > .< / span > < span class = cF1 > offset< / span > < span class = cF0 > .z = < / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.z - (< / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.z - < / span > < span class = cFB > mouse< / span > < span class = cF0 > .< / span > < span class = cF1 > offset< / span > < span class = cF0 > .z) * s;
< a name = "l145" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .sx = < / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.x - < / span > < span class = cFB > gr< / span > < span class = cF0 > .zoomed_dc-> width > > < / span > < span class = cFE > 1< / span > < span class = cF0 > / < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom;
< a name = "l146" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .sy = < / span > < span class = cFB > mouse< / span > < span class = cF0 > .pos.y - < / span > < span class = cFB > gr< / span > < span class = cF0 > .zoomed_dc-> height > > < / span > < span class = cFE > 1< / span > < span class = cF0 > / < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom;
< a name = "l147" > < / a > < / span > < span class = cF5 > GrFixZoomScale< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l148" > < / a > }
< a name = "l149" > < / a >
< a name = "l150" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrZoomInScreen< / span > < span class = cF0 > ()
< a name = "l151" > < / a > {
2021-09-22 04:45:45 +01:00
< a name = "l152" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i, j, k, l;
< a name = "l153" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *src, *src2, *dst;
< a name = "l154" > < / a >
< a name = "l155" > < / a > < / span > < span class = cF5 > GrFixZoomScale< / span > < span class = cF0 > ;
< a name = "l156" > < / a >
< a name = "l157" > < / a > src = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body + < / span > < span class = cFB > gr< / span > < span class = cF0 > .sx + < / span > < span class = cFB > gr< / span > < span class = cF0 > .sy * < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> width_internal;
< a name = "l158" > < / a > dst = < / span > < span class = cFB > gr< / span > < span class = cF0 > .zoomed_dc-> body;
< a name = "l159" > < / a >
< a name = "l160" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < < / span > < span class = cF3 > GR_HEIGHT< / span > < span class = cF0 > / < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom; i++)
< a name = "l161" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l162" > < / a > k = < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom;
< a name = "l163" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (k--)
< a name = "l164" > < / a > {
< a name = "l165" > < / a > src2 = src;
< a name = "l166" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (l = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; l < < / span > < span class = cF3 > GR_WIDTH< / span > < span class = cF0 > / < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom; l++)
< a name = "l167" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l168" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (j = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; j < < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom - < / span > < span class = cFE > 1< / span > < span class = cF0 > ; j++)
< a name = "l169" > < / a > *dst++ = *src2;
< a name = "l170" > < / a >
< a name = "l171" > < / a > *dst++ = *src2++;
< a name = "l172" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l173" > < / a > }
< a name = "l174" > < / a > src += < / span > < span class = cF3 > GR_WIDTH< / span > < span class = cF0 > ;
< a name = "l175" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l176" > < / a > }
< a name = "l177" > < / a >
< a name = "l178" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrUpdateTextBG< / span > < span class = cF0 > ()
< a name = "l179" > < / a > {
< a name = "l180" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > < / span > < span class = cF1 > reg< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > *dst = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body, < / span > < span class = cF1 > reg< / span > < span class = cF0 > < / span > < span class = cFC > R13< / span > < span class = cF0 > c, row, col,
< a name = "l181" > < / a > num_rows = < / span > < span class = cF3 > TEXT_ROWS< / span > < span class = cF0 > , num_cols = < / span > < span class = cF3 > TEXT_COLS< / span > < span class = cF0 > , i, j, cur_ch,
< a name = "l182" > < / a > < / span > < span class = cF1 > reg< / span > < span class = cF0 > < / span > < span class = cFC > R12< / span > < span class = cF0 > w1 = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> width_internal, w2 = -< / span > < span class = cFE > 7< / span > < span class = cF0 > * w1 + < / span > < span class = cFE > 8< / span > < span class = cF0 > , w3 = < / span > < span class = cFE > 7< / span > < span class = cF0 > * w1, w4 = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l183" > < / a > < / span > < span class = cF9 > U32< / span > < span class = cF0 > *src = < / span > < span class = cFB > gr< / span > < span class = cF0 > .text_base;
< a name = "l184" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > blink_flag = < / span > < span class = cF5 > Blink< / span > < span class = cF0 > ;
< a name = "l185" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *dst2 = dst;
< a name = "l186" > < / a >
< a name = "l187" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x || < / span > < span class = cFB > gr< / span > < span class = cF0 > .hide_col)
< a name = "l188" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l189" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x = < / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x, -< / span > < span class = cFE > 7< / span > < span class = cF0 > , < / span > < span class = cFE > 7< / span > < span class = cF0 > );
< a name = "l190" > < / a > j = < / span > < span class = cF5 > AbsI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x) / < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > + < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l191" > < / a > num_cols -= j;
< a name = "l192" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x < < / span > < span class = cFE > 0< / span > < span class = cF0 > )
< a name = "l193" > < / a > {
< a name = "l194" > < / a > src += j;
< a name = "l195" > < / a > i = < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > * j + < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x;
< a name = "l196" > < / a > }
< a name = "l197" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l198" > < / a > i = < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x;
< a name = "l199" > < / a > dst2 = dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) + i;
< a name = "l200" > < / a > w4 = j;
< a name = "l201" > < / a > w3 += j * < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > ;
< a name = "l202" > < / a >
< a name = "l203" > < / a > j *= < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > ;
< a name = "l204" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body;
< a name = "l205" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (row = num_rows * < / span > < span class = cF3 > FONT_HEIGHT< / span > < span class = cF0 > ; row--;)
< a name = "l206" > < / a > {
< a name = "l207" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (col = i; col--;)
< a name = "l208" > < / a > *dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *)++ = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l209" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += w1 - i - j;
< a name = "l210" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (col = j; col--;)
< a name = "l211" > < / a > *dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *)++ = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l212" > < / a > }
< a name = "l213" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l214" > < / a > dst = dst2;
< a name = "l215" > < / a >
< a name = "l216" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y || < / span > < span class = cFB > gr< / span > < span class = cF0 > .hide_row)
< a name = "l217" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l218" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y = < / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y, -< / span > < span class = cFE > 7< / span > < span class = cF0 > , < / span > < span class = cFE > 7< / span > < span class = cF0 > );
< a name = "l219" > < / a > j = < / span > < span class = cF5 > AbsI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y) / < / span > < span class = cF3 > FONT_HEIGHT< / span > < span class = cF0 > + < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l220" > < / a > num_rows -= j;
< a name = "l221" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y < < / span > < span class = cFE > 0< / span > < span class = cF0 > )
< a name = "l222" > < / a > {
< a name = "l223" > < / a > src += w1 / < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > * j;
< a name = "l224" > < / a > i = w1 * (< / span > < span class = cF3 > FONT_HEIGHT< / span > < span class = cF0 > * j + < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y);
< a name = "l225" > < / a > }
< a name = "l226" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l227" > < / a > i = w1 * < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y;
< a name = "l228" > < / a > dst2 = dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) + i;
< a name = "l229" > < / a >
< a name = "l230" > < / a > j *= w1 * < / span > < span class = cF3 > FONT_HEIGHT< / span > < span class = cF0 > ;
< a name = "l231" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body;
< a name = "l232" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (row = i; row--;)
< a name = "l233" > < / a > *dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *)++ = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l234" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body + < / span > < span class = cF3 > TEXT_ROWS< / span > < span class = cF0 > * < / span > < span class = cF3 > TEXT_COLS< / span > < span class = cF0 > * < / span > < span class = cF3 > FONT_HEIGHT< / span > < span class = cF0 > * < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > - j;
< a name = "l235" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (row=j;row--;)
< a name = "l236" > < / a > *dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *)++ = < / span > < span class = cFE > 0< / span > < span class = cF0 > ;
< a name = "l237" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l238" > < / a > dst = dst2;
< a name = "l239" > < / a >
< a name = "l240" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (row = num_rows; row--;)
< a name = "l241" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l242" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (col = num_cols; col--;)
< a name = "l243" > < / a > {
< a name = "l244" > < / a > cur_ch = *src++;
< a name = "l245" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF7 > (< / span > < span class = cF3 > ATTRF_SEL< / span > < span class = cF0 > | < / span > < span class = cF3 > ATTRF_INVERT< / span > < span class = cF0 > | < / span > < span class = cF3 > ATTRF_BLINK< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l246" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l247" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF3 > ATTRF_SEL< / span > < span class = cF0 > )
< a name = "l248" > < / a > cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] ^ < / span > < span class = cFE > 0xFF< / span > < span class = cF0 > ;
< a name = "l249" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF3 > ATTRF_INVERT< / span > < span class = cF0 > )
< a name = "l250" > < / a > cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] < < < / span > < span class = cFE > 4< / span > < span class = cF0 > + cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] > > < / span > < span class = cFE > 4< / span > < span class = cF0 > ;
< a name = "l251" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF3 > ATTRF_BLINK< / span > < span class = cF0 > & & blink_flag)
< a name = "l252" > < / a > cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] < < < / span > < span class = cFE > 4< / span > < span class = cF0 > + cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] > > < / span > < span class = cFE > 4< / span > < span class = cF0 > ;
< a name = "l253" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l254" > < / a > c = < / span > < span class = cFB > gr< / span > < span class = cF0 > .to_8_colors[cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] > > < / span > < span class = cFE > 4< / span > < span class = cF0 > ];
< a name = "l255" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l256" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > , < / span > < span class = cFC > R12< / span > < span class = cF0 >
< a name = "l257" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l258" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > , < / span > < span class = cFC > R12< / span > < span class = cF0 >
< a name = "l259" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l260" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > , < / span > < span class = cFC > R12< / span > < span class = cF0 >
< a name = "l261" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l262" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > , < / span > < span class = cFC > R12< / span > < span class = cF0 >
< a name = "l263" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l264" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > , < / span > < span class = cFC > R12< / span > < span class = cF0 >
< a name = "l265" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l266" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > , < / span > < span class = cFC > R12< / span > < span class = cF0 >
< a name = "l267" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l268" > < / a > < / span > < span class = cF1 > ADD< / span > < span class = cF0 > < / span > < span class = cFC > RSI< / span > < span class = cF0 > , < / span > < span class = cFC > R12< / span > < span class = cF0 >
< a name = "l269" > < / a > < / span > < span class = cF1 > MOV< / span > < span class = cF0 > < / span > < span class = cF9 > U64< / span > < span class = cF0 > [< / span > < span class = cFC > RSI< / span > < span class = cF0 > ], < / span > < span class = cFC > R13< / span > < span class = cF0 >
< a name = "l270" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += w2;
< a name = "l271" > < / a > }
< a name = "l272" > < / a > src += w4;
< a name = "l273" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += w3;
< a name = "l274" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l275" > < / a > }
< a name = "l276" > < / a >
< a name = "l277" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrUpdateTextFG< / span > < span class = cF0 > ()
< a name = "l278" > < / a > {< / span > < span class = cF2 > //See < / span > < span class = cF4 > < u > TextBase Layer< / u > < / span > < span class = cF2 > .< / span > < span class = cF0 >
< a name = "l279" > < / a > < / span > < span class = cF9 > U32< / span > < span class = cF0 > *src = < / span > < span class = cFB > gr< / span > < span class = cF0 > .text_base;
< a name = "l280" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > i, j, cur_ch, *dst = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body, w1 = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> width_internal, w2 = < / span > < span class = cFE > 7< / span > < span class = cF0 > * w1, w4 = < / span > < span class = cFE > 0< / span > < span class = cF0 > ,
< a name = "l281" > < / a > num_rows = < / span > < span class = cF3 > TEXT_ROWS< / span > < span class = cF0 > , num_cols = < / span > < span class = cF3 > TEXT_COLS< / span > < span class = cF0 > , row, col;
< a name = "l282" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *dst_start = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body, *dst_end = dst_start + w1 * < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> height - < / span > < span class = cFE > 7< / span > < span class = cF0 > * w1 - < / span > < span class = cFE > 8< / span > < span class = cF0 > ;
< a name = "l283" > < / a > < / span > < span class = cF1 > Bool< / span > < span class = cF0 > blink_flag = < / span > < span class = cF5 > Blink< / span > < span class = cF0 > ;
< a name = "l284" > < / a >
< a name = "l285" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x || < / span > < span class = cFB > gr< / span > < span class = cF0 > .hide_col)
< a name = "l286" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l287" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x = < / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x, -< / span > < span class = cFE > 7< / span > < span class = cF0 > , < / span > < span class = cFE > 7< / span > < span class = cF0 > );
< a name = "l288" > < / a > j = < / span > < span class = cF5 > AbsI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x) / < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > + < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l289" > < / a > num_cols -= j;
< a name = "l290" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x < < / span > < span class = cFE > 0< / span > < span class = cF0 > )
< a name = "l291" > < / a > {
< a name = "l292" > < / a > src += j;
< a name = "l293" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > * j;
< a name = "l294" > < / a > }
< a name = "l295" > < / a > w4 = j;
< a name = "l296" > < / a > w2 += j * < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > ;
< a name = "l297" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l298" > < / a >
< a name = "l299" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y || < / span > < span class = cFB > gr< / span > < span class = cF0 > .hide_row)
< a name = "l300" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l301" > < / a > < / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y = < / span > < span class = cF5 > ClampI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y, -< / span > < span class = cFE > 7< / span > < span class = cF0 > , < / span > < span class = cFE > 7< / span > < span class = cF0 > );
< a name = "l302" > < / a > j = < / span > < span class = cF5 > AbsI64< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y) / < / span > < span class = cF3 > FONT_HEIGHT< / span > < span class = cF0 > + < / span > < span class = cFE > 1< / span > < span class = cF0 > ;
< a name = "l303" > < / a > num_rows -= j;
< a name = "l304" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y < < / span > < span class = cFE > 0< / span > < span class = cF0 > )
< a name = "l305" > < / a > {
< a name = "l306" > < / a > src += w1 / < / span > < span class = cF3 > FONT_WIDTH< / span > < span class = cF0 > * j;
< a name = "l307" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += w1 * < / span > < span class = cF3 > FONT_HEIGHT< / span > < span class = cF0 > * j;
< a name = "l308" > < / a > }
< a name = "l309" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l310" > < / a >
< a name = "l311" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (row = num_rows; row--;)
< a name = "l312" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l313" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (col = num_cols; col--;)
< a name = "l314" > < / a > {
< a name = "l315" > < / a > cur_ch = *src++;
< a name = "l316" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF7 > (< / span > < span class = cF3 > ATTRF_UNDERLINE< / span > < span class = cF0 > | < / span > < span class = cF3 > ATTRF_SEL< / span > < span class = cF0 > | < / span > < span class = cF3 > ATTRF_INVERT< / span > < span class = cF0 > | < / span > < span class = cF3 > ATTRF_BLINK< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l317" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l318" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF3 > ATTRF_SEL< / span > < span class = cF0 > )
< a name = "l319" > < / a > cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] ^ < / span > < span class = cFE > 0xFF< / span > < span class = cF0 > ;
< a name = "l320" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF3 > ATTRF_INVERT< / span > < span class = cF0 > )
< a name = "l321" > < / a > cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] < < < / span > < span class = cFE > 4< / span > < span class = cF0 > + cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] > > < / span > < span class = cFE > 4< / span > < span class = cF0 > ;
< a name = "l322" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF3 > ATTRF_BLINK< / span > < span class = cF0 > & & blink_flag)
< a name = "l323" > < / a > cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] = cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] < < < / span > < span class = cFE > 4< / span > < span class = cF0 > + cur_ch.u8[< / span > < span class = cFE > 1< / span > < span class = cF0 > ] > > < / span > < span class = cFE > 4< / span > < span class = cF0 > ;
< a name = "l324" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l325" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i = cur_ch.u16[< / span > < span class = cFE > 1< / span > < span class = cF0 > ]& < / span > < span class = cFE > 0x3FF< / span > < span class = cF0 > +< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_x+< / span > < span class = cFB > gr< / span > < span class = cF0 > .pan_text_y< < < / span > < span class = cFE > 5< / span > < span class = cF0 > ) < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l326" > < / a > j = i & < / span > < span class = cFE > 0x1F< / span > < span class = cF0 > ;
< a name = "l327" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (j & < / span > < span class = cFE > 0x10< / span > < span class = cF0 > )
< a name = "l328" > < / a > j |= ~< / span > < span class = cFE > 0x1F< / span > < span class = cF0 > ;
< a name = "l329" > < / a > i > > = < / span > < span class = cFE > 5< / span > < span class = cF0 > ;
< a name = "l330" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (i & < / span > < span class = cFE > 0x10< / span > < span class = cF0 > )
< a name = "l331" > < / a > i |= ~< / span > < span class = cFE > 0x1F< / span > < span class = cF0 > ;
< a name = "l332" > < / a > i = w1 * i + j;
< a name = "l333" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (dst_start < = dst< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > + i < dst_end)
< a name = "l334" > < / a > < / span > < span class = cF5 > GrRopEquU8NoClipping< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF7 > (< / span > < span class = cF3 > ATTRF_UNDERLINE< / span > < span class = cF0 > + < / span > < span class = cFE > 0xFFF< / span > < span class = cF7 > )< / span > < span class = cF0 > , dst< / span > < span class = cF7 > (< / span > < span class = cF1 > U8< / span > < span class = cF0 > *< / span > < span class = cF7 > )< / span > < span class = cF0 > + i, w1);
< a name = "l335" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l336" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l337" > < / a > < / span > < span class = cF5 > GrRopEquU8NoClipping< / span > < span class = cF0 > (cur_ch & < / span > < span class = cF7 > (< / span > < span class = cF3 > ATTRF_UNDERLINE< / span > < span class = cF0 > + < / span > < span class = cFE > 0xFFF< / span > < span class = cF7 > )< / span > < span class = cF0 > , dst, w1);
< a name = "l338" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += < / span > < span class = cFE > 8< / span > < span class = cF0 > ;
< a name = "l339" > < / a > }
< a name = "l340" > < / a > src += w4;
< a name = "l341" > < / a > dst(< / span > < span class = cF1 > U8< / span > < span class = cF0 > *) += w2;
< a name = "l342" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l343" > < / a > }
< a name = "l344" > < / a >
< a name = "l345" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > DCBlotColor8< / span > < span class = cF0 > (< / span > < span class = cF9 > CDC< / span > < span class = cF0 > *dc, < / span > < span class = cF9 > CDC< / span > < span class = cF0 > *img)
< a name = "l346" > < / a > {
< a name = "l347" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *src = img-> body, *b0 = dc-> body;
< a name = "l348" > < / a > < / span > < span class = cF9 > I64< / span > < span class = cF0 > j, k, d0 = img-> width_internal * img-> height;
< a name = "l349" > < / a >
< a name = "l350" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (k = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; k < d0; k++)
< a name = "l351" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l352" > < / a > j = *src++;
< a name = "l353" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (j != < / span > < span class = cF3 > TRANSPARENT< / span > < span class = cF0 > )
< a name = "l354" > < / a > *b0++ = j;
< a name = "l355" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l356" > < / a > b0++;
< a name = "l357" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l358" > < / a > }
< a name = "l359" > < / a >
< a name = "l360" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrCalcScreenUpdates< / span > < span class = cF0 > ()
< a name = "l361" > < / a > {
< a name = "l362" > < / a > < / span > < span class = cF9 > U16< / span > < span class = cF0 > *screen, *last_screen = < / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_cache;
< a name = "l363" > < / a > < / span > < span class = cF9 > U64< / span > < span class = cF0 > i, *src = < / span > < span class = cFB > text< / span > < span class = cF0 > .raw_screen, *dst = < / span > < span class = cFB > text< / span > < span class = cF0 > .fb_alias, diffs_size = < / span > < span class = cF3 > GR_WIDTH< / span > < span class = cF0 > * < / span > < span class = cF3 > GR_HEIGHT< / span > < span class = cF0 > / < / span > < span class = cFE > 2< / span > < span class = cF0 > ;
< a name = "l364" > < / a >
< a name = "l365" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom == < / span > < span class = cFE > 1< / span > < span class = cF0 > )
< a name = "l366" > < / a > screen = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body;
< a name = "l367" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l368" > < / a > screen = < / span > < span class = cFB > gr< / span > < span class = cF0 > .zoomed_dc-> body;
< a name = "l369" > < / a >
< a name = "l370" > < / a > < / span > < span class = cF1 > for< / span > < span class = cF0 > (i = < / span > < span class = cFE > 0< / span > < span class = cF0 > ; i < diffs_size; i++)
< a name = "l371" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l372" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (screen[i] != last_screen[i])
< a name = "l373" > < / a > dst[i] = src[i];
< a name = "l374" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l375" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_cache, screen, diffs_size * < / span > < span class = cFE > 2< / span > < span class = cF0 > );
< a name = "l376" > < / a > }
< a name = "l377" > < / a >
< a name = "l378" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrUpdateScreen32< / span > < span class = cF0 > ()
< a name = "l379" > < / a > {
< a name = "l380" > < / a > < / span > < span class = cF9 > U64< / span > < span class = cF0 > size, *dst;
< a name = "l381" > < / a > < / span > < span class = cF1 > U8< / span > < span class = cF0 > *src;
< a name = "l382" > < / a >
< a name = "l383" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .screen_zoom == < / span > < span class = cFE > 1< / span > < span class = cF0 > )
< a name = "l384" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l385" > < / a > src = < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body;
< a name = "l386" > < / a > size = src + < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> height * < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> width_internal;
< a name = "l387" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l388" > < / a > < / span > < span class = cF1 > else< / span > < span class = cF0 >
< a name = "l389" > < / a > < / span > < span class = cF7 > {< / span > < span class = cF0 >
< a name = "l390" > < / a > < / span > < span class = cF5 > GrZoomInScreen< / span > < span class = cF0 > ;
< a name = "l391" > < / a > src = < / span > < span class = cFB > gr< / span > < span class = cF0 > .zoomed_dc-> body;
< a name = "l392" > < / a > size = src + < / span > < span class = cFB > gr< / span > < span class = cF0 > .zoomed_dc-> height * < / span > < span class = cFB > gr< / span > < span class = cF0 > .zoomed_dc-> width_internal;
< a name = "l393" > < / a > < / span > < span class = cF7 > }< / span > < span class = cF0 >
< a name = "l394" > < / a > dst = < / span > < span class = cFB > text< / span > < span class = cF0 > .raw_screen;
< a name = "l395" > < / a > < / span > < span class = cF1 > while< / span > < span class = cF0 > (src < size) < / span > < span class = cF2 > //draw 2 pixels at a time< / span > < span class = cF0 >
< a name = "l396" > < / a > *dst++ = < / span > < span class = cFB > gr_palette< / span > < span class = cF0 > [*src++ & < / span > < span class = cFE > 0xFF< / span > < span class = cF0 > ] | < / span > < span class = cFB > gr_palette< / span > < span class = cF0 > [*src++ & < / span > < span class = cFE > 0xFF< / span > < span class = cF0 > ] < < < / span > < span class = cFE > 32< / span > < span class = cF0 > ;
< a name = "l397" > < / a >
< a name = "l398" > < / a > < / span > < span class = cF5 > GrCalcScreenUpdates< / span > < span class = cF0 > ;
< a name = "l399" > < / a >
< a name = "l400" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cF5 > LBtr< / span > < span class = cF7 > (< / span > < span class = cF0 > & < / span > < span class = cFB > sys_semas< / span > < span class = cF0 > [< / span > < span class = cF3 > SEMA_FLUSH_VBE_IMAGE< / span > < span class = cF0 > ], < / span > < span class = cFE > 0< / span > < span class = cF7 > )< / span > < span class = cF0 > )
< a name = "l401" > < / a > < / span > < span class = cF5 > MemCopy< / span > < span class = cF0 > (< / span > < span class = cFB > text< / span > < span class = cF0 > .fb_alias, < / span > < span class = cFB > text< / span > < span class = cF0 > .raw_screen, < / span > < span class = cFB > text< / span > < span class = cF0 > .buffer_size);
< a name = "l402" > < / a > }
< a name = "l403" > < / a >
< a name = "l404" > < / a > < / span > < span class = cF1 > U0< / span > < span class = cF0 > < / span > < span class = cF5 > GrUpdateScreen< / span > < span class = cF0 > ()
< a name = "l405" > < / a > {< / span > < span class = cF2 > //Called by the Window Manager < / span > < a href = "https://zeal-operating-system.github.io/ZealOS/System/WinMgr.CC.html#l306" > < span class = cF4 > HERE< / span > < / a > < span class = cF2 > , 30 times a second.< / span > < span class = cF0 >
< a name = "l406" > < / a > < / span > < span class = cF9 > CDC< / span > < span class = cF0 > *dc;
< a name = "l407" > < / a >
< a name = "l408" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > text< / span > < span class = cF0 > .is_fb_busy)
< a name = "l409" > < / a > < / span > < span class = cF1 > return< / span > < span class = cF0 > ;
2021-07-03 05:07:57 +01:00
< a name = "l410" > < / a >
2021-09-22 04:45:45 +01:00
< a name = "l411" > < / a > < / span > < span class = cF5 > GrUpdateTextBG< / span > < span class = cF0 > ;
< a name = "l412" > < / a > < / span > < span class = cF5 > GrUpdateTextFG< / span > < span class = cF0 > ;
< a name = "l413" > < / a > < / span > < span class = cF5 > GrUpdateTasks< / span > < span class = cF0 > ;
< a name = "l414" > < / a > < / span > < span class = cF5 > DCBlotColor8< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2, < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc);
< a name = "l415" > < / a >
< a name = "l416" > < / a > dc=< / span > < span class = cF5 > DCAlias< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2, < / span > < span class = cF5 > Fs< / span > < span class = cF0 > );
< a name = "l417" > < / a > dc-> flags |= < / span > < span class = cF3 > DCF_ON_TOP< / span > < span class = cF0 > ;
< a name = "l418" > < / a > < / span > < span class = cF1 > if< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .fp_final_screen_update)
< a name = "l419" > < / a > (*< / span > < span class = cFB > gr< / span > < span class = cF0 > .fp_final_screen_update)(dc);
< a name = "l420" > < / a > < / span > < span class = cF5 > DCDel< / span > < span class = cF0 > (dc);
2021-07-03 05:07:57 +01:00
< a name = "l421" > < / a >
2021-09-22 04:45:45 +01:00
< a name = "l422" > < / a > < / span > < span class = cF5 > DCBlotColor4< / span > < span class = cF0 > (< / span > < span class = cFB > gr< / span > < span class = cF0 > .dc1-> body, < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> body, < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc_cache-> body, < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> height * < / span > < span class = cFB > gr< / span > < span class = cF0 > .dc2-> width_internal > > < / span > < span class = cFE > 3< / span > < span class = cF0 > );
< a name = "l423" > < / a > < / span > < span class = cF5 > GrUpdateScreen32< / span > < span class = cF0 > ;
< a name = "l424" > < / a > }
2021-07-03 05:07:57 +01:00
< / span > < / pre > < / body >
< / html >