Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.write('<link rel="stylesheet" href="https://assets-cdn.github.com/assets/gist-embed-87673c31a5b37b5e6556b63e1081ebbc.css">')
- document.write('<div id=\"gist90633831\" class=\"gist\">\n <div class=\"gist-file\">\n <div class=\"gist-data\">\n <div class=\"js-gist-file-update-container js-task-list-container file-box\">\n <div id=\"file-stuckpixelfix-cs\" class=\"file\">\n \n\n <div itemprop=\"text\" class=\"blob-wrapper data type-c\">\n <table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n <tr>\n <td id=\"file-stuckpixelfix-cs-L1\" class=\"blob-num js-line-number\" data-line-number=\"1\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC1\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L2\" class=\"blob-num js-line-number\" data-line-number=\"2\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC2\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Collections<\/span>.<span class=\"pl-en\">Concurrent<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L3\" class=\"blob-num js-line-number\" data-line-number=\"3\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC3\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Diagnostics<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L4\" class=\"blob-num js-line-number\" data-line-number=\"4\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC4\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Drawing<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L5\" class=\"blob-num js-line-number\" data-line-number=\"5\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC5\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Drawing<\/span>.<span class=\"pl-en\">Imaging<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L6\" class=\"blob-num js-line-number\" data-line-number=\"6\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC6\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Linq<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L7\" class=\"blob-num js-line-number\" data-line-number=\"7\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC7\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Runtime<\/span>.<span class=\"pl-en\">InteropServices<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L8\" class=\"blob-num js-line-number\" data-line-number=\"8\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC8\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Threading<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L9\" class=\"blob-num js-line-number\" data-line-number=\"9\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC9\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Threading<\/span>.<span class=\"pl-en\">Tasks<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L10\" class=\"blob-num js-line-number\" data-line-number=\"10\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC10\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\">System<\/span>.<span class=\"pl-en\">Windows<\/span>.<span class=\"pl-en\">Forms<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L11\" class=\"blob-num js-line-number\" data-line-number=\"11\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC11\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">using<\/span> <span class=\"pl-en\"><span class=\"pl-en\">Timer<\/span><\/span><span class=\"pl-k\">=<\/span><span class=\"pl-k\">System<\/span>.<span class=\"pl-k\">Windows<\/span>.<span class=\"pl-k\">Forms<\/span>.<span class=\"pl-en\">Timer<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L12\" class=\"blob-num js-line-number\" data-line-number=\"12\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC12\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L13\" class=\"blob-num js-line-number\" data-line-number=\"13\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC13\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"><span class=\"pl-c\">///<\/span> <<span class=\"pl-ent\"><span class=\"pl-ent\">summary<\/span><\/span>><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L14\" class=\"blob-num js-line-number\" data-line-number=\"14\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC14\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"><span class=\"pl-c\">///<\/span> Based on the idea of http://www.jscreenfix.com<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L15\" class=\"blob-num js-line-number\" data-line-number=\"15\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC15\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"><span class=\"pl-c\">///<\/span> </<span class=\"pl-ent\"><span class=\"pl-ent\">summary<\/span><\/span>><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L16\" class=\"blob-num js-line-number\" data-line-number=\"16\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC16\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">public<\/span> <span class=\"pl-k\">sealed<\/span> <span class=\"pl-k\">partial<\/span> <span class=\"pl-k\">class<\/span> <span class=\"pl-en\">StuckPixelFixForm<\/span> : <span class=\"pl-en\">Form<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L17\" class=\"blob-num js-line-number\" data-line-number=\"17\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC17\" class=\"blob-code blob-code-inner js-file-line\">{<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L18\" class=\"blob-num js-line-number\" data-line-number=\"18\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC18\" class=\"blob-code blob-code-inner js-file-line\"> [<span class=\"pl-en\">DllImport<\/span>(<span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>user32.dll<span class=\"pl-pds\">"<\/span><\/span>)]<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L19\" class=\"blob-num js-line-number\" data-line-number=\"19\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC19\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">extern<\/span> <span class=\"pl-k\">bool<\/span> <span class=\"pl-en\">LockWindowUpdate<\/span>(<span class=\"pl-en\">IntPtr<\/span> <span class=\"pl-smi\">hWndLock<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L20\" class=\"blob-num js-line-number\" data-line-number=\"20\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC20\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L21\" class=\"blob-num js-line-number\" data-line-number=\"21\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC21\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">readonly<\/span> <span class=\"pl-en\">BlockingCollection<\/span><<span class=\"pl-en\">Bitmap<\/span>> <span class=\"pl-smi\">drawQ<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">BlockingCollection<\/span><<span class=\"pl-en\">Bitmap<\/span>>(<span class=\"pl-c1\">2<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L22\" class=\"blob-num js-line-number\" data-line-number=\"22\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC22\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">readonly<\/span> <span class=\"pl-en\">ThreadLocal<\/span><<span class=\"pl-en\">RndPixelFiller<\/span>> <span class=\"pl-smi\">filler<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">ThreadLocal<\/span><<span class=\"pl-en\">RndPixelFiller<\/span>>(() <span class=\"pl-k\">=><\/span> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">RndPixelFiller<\/span>()); <\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L23\" class=\"blob-num js-line-number\" data-line-number=\"23\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC23\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L24\" class=\"blob-num js-line-number\" data-line-number=\"24\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC24\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">readonly<\/span> <span class=\"pl-en\">Timer<\/span> <span class=\"pl-smi\">timer<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">Timer<\/span> { <span class=\"pl-smi\">Interval<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">10<\/span> };<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L25\" class=\"blob-num js-line-number\" data-line-number=\"25\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC25\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-en\">TimeStats<\/span> <span class=\"pl-smi\">stats<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">TimeStats<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L26\" class=\"blob-num js-line-number\" data-line-number=\"26\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC26\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">ulong<\/span> <span class=\"pl-smi\">framesDisplayed<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">0<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L27\" class=\"blob-num js-line-number\" data-line-number=\"27\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC27\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L28\" class=\"blob-num js-line-number\" data-line-number=\"28\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC28\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">protected<\/span> <span class=\"pl-k\">override<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">OnLoad<\/span>(<span class=\"pl-en\">EventArgs<\/span> <span class=\"pl-smi\">e<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L29\" class=\"blob-num js-line-number\" data-line-number=\"29\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC29\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L30\" class=\"blob-num js-line-number\" data-line-number=\"30\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC30\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">base<\/span>.<span class=\"pl-en\">OnLoad<\/span>(<span class=\"pl-smi\">e<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L31\" class=\"blob-num js-line-number\" data-line-number=\"31\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC31\" class=\"blob-code blob-code-inner js-file-line\"> <\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L32\" class=\"blob-num js-line-number\" data-line-number=\"32\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC32\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-c\"><span class=\"pl-c\">//<\/span>base.TopMost = true;<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L33\" class=\"blob-num js-line-number\" data-line-number=\"33\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC33\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">base<\/span>.<span class=\"pl-smi\">DoubleBuffered<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">true<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L34\" class=\"blob-num js-line-number\" data-line-number=\"34\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC34\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">base<\/span>.<span class=\"pl-smi\">FormBorderStyle<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">FormBorderStyle<\/span>.<span class=\"pl-smi\">None<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L35\" class=\"blob-num js-line-number\" data-line-number=\"35\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC35\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">base<\/span>.<span class=\"pl-smi\">WindowState<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">FormWindowState<\/span>.<span class=\"pl-smi\">Maximized<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L36\" class=\"blob-num js-line-number\" data-line-number=\"36\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC36\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L37\" class=\"blob-num js-line-number\" data-line-number=\"37\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC37\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">Thread<\/span>(<span class=\"pl-smi\">RunFramesRenderer<\/span>) { <span class=\"pl-smi\">IsBackground<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">true<\/span> }.<span class=\"pl-en\">Start<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L38\" class=\"blob-num js-line-number\" data-line-number=\"38\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC38\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-c\"><span class=\"pl-c\">//<\/span>Task.Factory.StartNew(RunFramesRenderer, TaskCreationOptions.LongRunning);<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L39\" class=\"blob-num js-line-number\" data-line-number=\"39\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC39\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L40\" class=\"blob-num js-line-number\" data-line-number=\"40\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC40\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">timer<\/span>.<span class=\"pl-smi\">Tick<\/span> <span class=\"pl-k\">+=<\/span> <span class=\"pl-smi\">OnTimerTick<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L41\" class=\"blob-num js-line-number\" data-line-number=\"41\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC41\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">timer<\/span>.<span class=\"pl-en\">Start<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L42\" class=\"blob-num js-line-number\" data-line-number=\"42\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC42\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L43\" class=\"blob-num js-line-number\" data-line-number=\"43\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC43\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L44\" class=\"blob-num js-line-number\" data-line-number=\"44\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC44\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">protected<\/span> <span class=\"pl-k\">override<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">OnActivated<\/span>(<span class=\"pl-en\">EventArgs<\/span> <span class=\"pl-smi\">e<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L45\" class=\"blob-num js-line-number\" data-line-number=\"45\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC45\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L46\" class=\"blob-num js-line-number\" data-line-number=\"46\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC46\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Cursor<\/span>.<span class=\"pl-en\">Hide<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L47\" class=\"blob-num js-line-number\" data-line-number=\"47\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC47\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">timer<\/span>.<span class=\"pl-en\">Start<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L48\" class=\"blob-num js-line-number\" data-line-number=\"48\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC48\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L49\" class=\"blob-num js-line-number\" data-line-number=\"49\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC49\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L50\" class=\"blob-num js-line-number\" data-line-number=\"50\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC50\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">protected<\/span> <span class=\"pl-k\">override<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">OnDeactivate<\/span>(<span class=\"pl-en\">EventArgs<\/span> <span class=\"pl-smi\">e<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L51\" class=\"blob-num js-line-number\" data-line-number=\"51\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC51\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L52\" class=\"blob-num js-line-number\" data-line-number=\"52\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC52\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Cursor<\/span>.<span class=\"pl-en\">Show<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L53\" class=\"blob-num js-line-number\" data-line-number=\"53\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC53\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">timer<\/span>.<span class=\"pl-en\">Stop<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L54\" class=\"blob-num js-line-number\" data-line-number=\"54\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC54\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L55\" class=\"blob-num js-line-number\" data-line-number=\"55\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC55\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L56\" class=\"blob-num js-line-number\" data-line-number=\"56\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC56\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">protected<\/span> <span class=\"pl-k\">override<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">OnClosed<\/span>(<span class=\"pl-en\">EventArgs<\/span> <span class=\"pl-smi\">e<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L57\" class=\"blob-num js-line-number\" data-line-number=\"57\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC57\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L58\" class=\"blob-num js-line-number\" data-line-number=\"58\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC58\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">base<\/span>.<span class=\"pl-en\">OnClosed<\/span>(<span class=\"pl-smi\">e<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L59\" class=\"blob-num js-line-number\" data-line-number=\"59\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC59\" class=\"blob-code blob-code-inner js-file-line\"> <\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L60\" class=\"blob-num js-line-number\" data-line-number=\"60\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC60\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">const<\/span> <span class=\"pl-k\">string<\/span> <span class=\"pl-smi\">f1<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-s\"><span class=\"pl-pds\">@"<\/span>ss\\.fffff<span class=\"pl-pds\">"<\/span><\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L61\" class=\"blob-num js-line-number\" data-line-number=\"61\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC61\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">MessageBox<\/span>.<span class=\"pl-en\">Show<\/span>(<span class=\"pl-k\">this<\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L62\" class=\"blob-num js-line-number\" data-line-number=\"62\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC62\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">string<\/span>.<span class=\"pl-en\">Join<\/span>(<span class=\"pl-smi\">Environment<\/span>.<span class=\"pl-smi\">NewLine<\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L63\" class=\"blob-num js-line-number\" data-line-number=\"63\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC63\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Frame rendering times:<span class=\"pl-pds\">"<\/span><\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L64\" class=\"blob-num js-line-number\" data-line-number=\"64\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC64\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Avg (s) = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-smi\">Avg<\/span>.<span class=\"pl-en\">ToString<\/span>(<span class=\"pl-smi\">f1<\/span>),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L65\" class=\"blob-num js-line-number\" data-line-number=\"65\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC65\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Min (s) = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-smi\">Min<\/span>.<span class=\"pl-en\">ToString<\/span>(<span class=\"pl-smi\">f1<\/span>),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L66\" class=\"blob-num js-line-number\" data-line-number=\"66\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC66\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Max (s) = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-smi\">Max<\/span>.<span class=\"pl-en\">ToString<\/span>(<span class=\"pl-smi\">f1<\/span>),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L67\" class=\"blob-num js-line-number\" data-line-number=\"67\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC67\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">string<\/span>.<span class=\"pl-smi\">Empty<\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L68\" class=\"blob-num js-line-number\" data-line-number=\"68\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC68\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Frames Per Second (FPS):<span class=\"pl-pds\">"<\/span><\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L69\" class=\"blob-num js-line-number\" data-line-number=\"69\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC69\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Avg = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> (<span class=\"pl-c1\">1.0d<\/span> <span class=\"pl-k\">/<\/span> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-smi\">Avg<\/span>.<span class=\"pl-smi\">TotalSeconds<\/span>).<span class=\"pl-en\">ToString<\/span>(<span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>F3<span class=\"pl-pds\">"<\/span><\/span>),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L70\" class=\"blob-num js-line-number\" data-line-number=\"70\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC70\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Min = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> (<span class=\"pl-c1\">1.0d<\/span> <span class=\"pl-k\">/<\/span> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-smi\">Max<\/span>.<span class=\"pl-smi\">TotalSeconds<\/span>).<span class=\"pl-en\">ToString<\/span>(<span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>F3<span class=\"pl-pds\">"<\/span><\/span>),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L71\" class=\"blob-num js-line-number\" data-line-number=\"71\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC71\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Max = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> (<span class=\"pl-c1\">1.0d<\/span> <span class=\"pl-k\">/<\/span> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-smi\">Min<\/span>.<span class=\"pl-smi\">TotalSeconds<\/span>).<span class=\"pl-en\">ToString<\/span>(<span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>F3<span class=\"pl-pds\">"<\/span><\/span>),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L72\" class=\"blob-num js-line-number\" data-line-number=\"72\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC72\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">string<\/span>.<span class=\"pl-smi\">Empty<\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L73\" class=\"blob-num js-line-number\" data-line-number=\"73\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC73\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Summary:<span class=\"pl-pds\">"<\/span><\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L74\" class=\"blob-num js-line-number\" data-line-number=\"74\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC74\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>App run time = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> (<span class=\"pl-smi\">DateTime<\/span>.<span class=\"pl-smi\">UtcNow<\/span> <span class=\"pl-k\">-<\/span> <span class=\"pl-smi\">Process<\/span>.<span class=\"pl-en\">GetCurrentProcess<\/span>().<span class=\"pl-smi\">StartTime<\/span>.<span class=\"pl-en\">ToUniversalTime<\/span>()),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L75\" class=\"blob-num js-line-number\" data-line-number=\"75\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC75\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Total frames rendered = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-smi\">SamplesCount<\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L76\" class=\"blob-num js-line-number\" data-line-number=\"76\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC76\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Total frames displayed = <span class=\"pl-pds\">"<\/span><\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">framesDisplayed<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L77\" class=\"blob-num js-line-number\" data-line-number=\"77\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC77\" class=\"blob-code blob-code-inner js-file-line\"> ), <span class=\"pl-smi\">Application<\/span>.<span class=\"pl-smi\">ProductName<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L78\" class=\"blob-num js-line-number\" data-line-number=\"78\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC78\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L79\" class=\"blob-num js-line-number\" data-line-number=\"79\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC79\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L80\" class=\"blob-num js-line-number\" data-line-number=\"80\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC80\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">protected<\/span> <span class=\"pl-k\">override<\/span> <span class=\"pl-k\">bool<\/span> <span class=\"pl-en\">ProcessCmdKey<\/span>(<span class=\"pl-k\">ref<\/span> <span class=\"pl-en\">Message<\/span> <span class=\"pl-smi\">msg<\/span>, <span class=\"pl-en\">Keys<\/span> <span class=\"pl-smi\">keyData<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L81\" class=\"blob-num js-line-number\" data-line-number=\"81\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC81\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L82\" class=\"blob-num js-line-number\" data-line-number=\"82\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC82\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">if<\/span> (<span class=\"pl-smi\">keyData<\/span> <span class=\"pl-k\">==<\/span> (<span class=\"pl-smi\">Keys<\/span>.<span class=\"pl-smi\">Escape<\/span>))<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L83\" class=\"blob-num js-line-number\" data-line-number=\"83\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC83\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L84\" class=\"blob-num js-line-number\" data-line-number=\"84\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC84\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-en\">Close<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L85\" class=\"blob-num js-line-number\" data-line-number=\"85\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC85\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">return<\/span> <span class=\"pl-c1\">true<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L86\" class=\"blob-num js-line-number\" data-line-number=\"86\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC86\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L87\" class=\"blob-num js-line-number\" data-line-number=\"87\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC87\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">return<\/span> <span class=\"pl-k\">base<\/span>.<span class=\"pl-en\">ProcessCmdKey<\/span>(<span class=\"pl-k\">ref<\/span> <span class=\"pl-smi\">msg<\/span>, <span class=\"pl-smi\">keyData<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L88\" class=\"blob-num js-line-number\" data-line-number=\"88\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC88\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L89\" class=\"blob-num js-line-number\" data-line-number=\"89\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC89\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L90\" class=\"blob-num js-line-number\" data-line-number=\"90\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC90\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">protected<\/span> <span class=\"pl-k\">override<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">OnPaintBackground<\/span>(<span class=\"pl-en\">PaintEventArgs<\/span> <span class=\"pl-smi\">e<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L91\" class=\"blob-num js-line-number\" data-line-number=\"91\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC91\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L92\" class=\"blob-num js-line-number\" data-line-number=\"92\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC92\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">if<\/span> (<span class=\"pl-smi\">drawQ<\/span>.<span class=\"pl-en\">TryTake<\/span>(<span class=\"pl-k\">out<\/span> <span class=\"pl-en\">Bitmap<\/span> <span class=\"pl-smi\">frame<\/span>))<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L93\" class=\"blob-num js-line-number\" data-line-number=\"93\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC93\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L94\" class=\"blob-num js-line-number\" data-line-number=\"94\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC94\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">e<\/span>.<span class=\"pl-smi\">Graphics<\/span>.<span class=\"pl-en\">DrawImageUnscaled<\/span>(<span class=\"pl-smi\">frame<\/span>, <span class=\"pl-smi\">e<\/span>.<span class=\"pl-smi\">ClipRectangle<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L95\" class=\"blob-num js-line-number\" data-line-number=\"95\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC95\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">++<\/span><span class=\"pl-smi\">framesDisplayed<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L96\" class=\"blob-num js-line-number\" data-line-number=\"96\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC96\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L97\" class=\"blob-num js-line-number\" data-line-number=\"97\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC97\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L98\" class=\"blob-num js-line-number\" data-line-number=\"98\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC98\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L99\" class=\"blob-num js-line-number\" data-line-number=\"99\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC99\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">OnTimerTick<\/span>(<span class=\"pl-k\">object<\/span> <span class=\"pl-smi\">sender<\/span>, <span class=\"pl-en\">EventArgs<\/span> <span class=\"pl-smi\">e<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L100\" class=\"blob-num js-line-number\" data-line-number=\"100\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC100\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L101\" class=\"blob-num js-line-number\" data-line-number=\"101\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC101\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-en\">LockWindowUpdate<\/span>(<span class=\"pl-smi\">Handle<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L102\" class=\"blob-num js-line-number\" data-line-number=\"102\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC102\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-en\">Refresh<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L103\" class=\"blob-num js-line-number\" data-line-number=\"103\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC103\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-en\">LockWindowUpdate<\/span>(<span class=\"pl-smi\">IntPtr<\/span>.<span class=\"pl-smi\">Zero<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L104\" class=\"blob-num js-line-number\" data-line-number=\"104\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC104\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L105\" class=\"blob-num js-line-number\" data-line-number=\"105\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC105\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L106\" class=\"blob-num js-line-number\" data-line-number=\"106\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC106\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">RunFramesRenderer<\/span>()<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L107\" class=\"blob-num js-line-number\" data-line-number=\"107\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC107\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L108\" class=\"blob-num js-line-number\" data-line-number=\"108\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC108\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">poolLength<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">drawQ<\/span>.<span class=\"pl-smi\">BoundedCapacity<\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-c1\">2<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L109\" class=\"blob-num js-line-number\" data-line-number=\"109\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC109\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">framesPool<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">Enumerable<\/span>.<span class=\"pl-en\">Range<\/span>(<span class=\"pl-c1\">0<\/span>, <span class=\"pl-smi\">poolLength<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L110\" class=\"blob-num js-line-number\" data-line-number=\"110\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC110\" class=\"blob-code blob-code-inner js-file-line\"> .<span class=\"pl-en\">Select<\/span>(<span class=\"pl-smi\">_<\/span> <span class=\"pl-k\">=><\/span> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">Bitmap<\/span>(<span class=\"pl-smi\">Width<\/span>, <span class=\"pl-smi\">Height<\/span>)).<span class=\"pl-en\">ToArray<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L111\" class=\"blob-num js-line-number\" data-line-number=\"111\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC111\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">frameIndex<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">0<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L112\" class=\"blob-num js-line-number\" data-line-number=\"112\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC112\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">while<\/span> (<span class=\"pl-c1\">true<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L113\" class=\"blob-num js-line-number\" data-line-number=\"113\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC113\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L114\" class=\"blob-num js-line-number\" data-line-number=\"114\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC114\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">drawQ<\/span>.<span class=\"pl-en\">Add<\/span>(<span class=\"pl-en\">RenderFrame<\/span>(<span class=\"pl-smi\">framesPool<\/span>[<span class=\"pl-smi\">frameIndex<\/span>]));<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L115\" class=\"blob-num js-line-number\" data-line-number=\"115\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC115\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">frameIndex<\/span> <span class=\"pl-k\">=<\/span> (<span class=\"pl-smi\">frameIndex<\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-c1\">1<\/span>) <span class=\"pl-k\">%<\/span> <span class=\"pl-smi\">poolLength<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L116\" class=\"blob-num js-line-number\" data-line-number=\"116\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC116\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L117\" class=\"blob-num js-line-number\" data-line-number=\"117\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC117\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L118\" class=\"blob-num js-line-number\" data-line-number=\"118\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC118\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L119\" class=\"blob-num js-line-number\" data-line-number=\"119\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC119\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-en\">Bitmap<\/span> <span class=\"pl-en\">RenderFrame<\/span>(<span class=\"pl-en\">Bitmap<\/span> <span class=\"pl-smi\">img<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L120\" class=\"blob-num js-line-number\" data-line-number=\"120\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC120\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L121\" class=\"blob-num js-line-number\" data-line-number=\"121\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC121\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">data<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">img<\/span>.<span class=\"pl-en\">LockBits<\/span>(<span class=\"pl-k\">new<\/span> <span class=\"pl-en\">Rectangle<\/span>(<span class=\"pl-c1\">0<\/span>, <span class=\"pl-c1\">0<\/span>, <span class=\"pl-smi\">img<\/span>.<span class=\"pl-smi\">Width<\/span>, <span class=\"pl-smi\">img<\/span>.<span class=\"pl-smi\">Height<\/span>),<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L122\" class=\"blob-num js-line-number\" data-line-number=\"122\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC122\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">ImageLockMode<\/span>.<span class=\"pl-smi\">WriteOnly<\/span>,<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L123\" class=\"blob-num js-line-number\" data-line-number=\"123\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC123\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">PixelFormat<\/span>.<span class=\"pl-smi\">Format32bppArgb<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L124\" class=\"blob-num js-line-number\" data-line-number=\"124\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC124\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">try<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L125\" class=\"blob-num js-line-number\" data-line-number=\"125\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC125\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L126\" class=\"blob-num js-line-number\" data-line-number=\"126\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC126\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-en\">BeginSample<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L127\" class=\"blob-num js-line-number\" data-line-number=\"127\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC127\" class=\"blob-code blob-code-inner js-file-line\">#<span class=\"pl-k\">if<\/span> <span class=\"pl-c1\">true<\/span> <span class=\"pl-c\"><span class=\"pl-c\">//<\/span> MT<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L128\" class=\"blob-num js-line-number\" data-line-number=\"128\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC128\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-en\">FillNoiseMT<\/span>(<span class=\"pl-smi\">data<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L129\" class=\"blob-num js-line-number\" data-line-number=\"129\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC129\" class=\"blob-code blob-code-inner js-file-line\">#<span class=\"pl-k\">else<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L130\" class=\"blob-num js-line-number\" data-line-number=\"130\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC130\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-en\">FillNoiseST<\/span>(<span class=\"pl-smi\">data<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L131\" class=\"blob-num js-line-number\" data-line-number=\"131\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC131\" class=\"blob-code blob-code-inner js-file-line\">#<span class=\"pl-k\">endif<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L132\" class=\"blob-num js-line-number\" data-line-number=\"132\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC132\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">stats<\/span>.<span class=\"pl-en\">EndSample<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L133\" class=\"blob-num js-line-number\" data-line-number=\"133\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC133\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L134\" class=\"blob-num js-line-number\" data-line-number=\"134\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC134\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">finally<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L135\" class=\"blob-num js-line-number\" data-line-number=\"135\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC135\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L136\" class=\"blob-num js-line-number\" data-line-number=\"136\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC136\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">img<\/span>.<span class=\"pl-en\">UnlockBits<\/span>(<span class=\"pl-smi\">data<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L137\" class=\"blob-num js-line-number\" data-line-number=\"137\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC137\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L138\" class=\"blob-num js-line-number\" data-line-number=\"138\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC138\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">return<\/span> <span class=\"pl-smi\">img<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L139\" class=\"blob-num js-line-number\" data-line-number=\"139\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC139\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L140\" class=\"blob-num js-line-number\" data-line-number=\"140\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC140\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L141\" class=\"blob-num js-line-number\" data-line-number=\"141\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC141\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">FillNoiseST<\/span>(<span class=\"pl-en\">BitmapData<\/span> <span class=\"pl-smi\">data<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L142\" class=\"blob-num js-line-number\" data-line-number=\"142\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC142\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L143\" class=\"blob-num js-line-number\" data-line-number=\"143\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC143\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">filler<\/span>.<span class=\"pl-smi\">Value<\/span>.<span class=\"pl-en\">FillBuffer<\/span>(<span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Scan0<\/span>, <span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Scan0<\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Stride<\/span> <span class=\"pl-k\">*<\/span> <span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Height<\/span>); <\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L144\" class=\"blob-num js-line-number\" data-line-number=\"144\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC144\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L145\" class=\"blob-num js-line-number\" data-line-number=\"145\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC145\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L146\" class=\"blob-num js-line-number\" data-line-number=\"146\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC146\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">FillNoiseMT<\/span>(<span class=\"pl-en\">BitmapData<\/span> <span class=\"pl-smi\">data<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L147\" class=\"blob-num js-line-number\" data-line-number=\"147\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC147\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L148\" class=\"blob-num js-line-number\" data-line-number=\"148\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC148\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">partitioner<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">Partitioner<\/span>.<span class=\"pl-en\">Create<\/span>(<span class=\"pl-c1\">0<\/span>, <span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Height<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L149\" class=\"blob-num js-line-number\" data-line-number=\"149\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC149\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Parallel<\/span>.<span class=\"pl-en\">ForEach<\/span>(<span class=\"pl-smi\">partitioner<\/span>, (<span class=\"pl-smi\">range<\/span>, <span class=\"pl-smi\">state<\/span>) <span class=\"pl-k\">=><\/span> <\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L150\" class=\"blob-num js-line-number\" data-line-number=\"150\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC150\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">filler<\/span>.<span class=\"pl-smi\">Value<\/span>.<span class=\"pl-en\">FillBuffer<\/span>(<span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Scan0<\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Stride<\/span> <span class=\"pl-k\">*<\/span> <span class=\"pl-smi\">range<\/span>.<span class=\"pl-smi\">Item1<\/span>, <span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Scan0<\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">data<\/span>.<span class=\"pl-smi\">Stride<\/span> <span class=\"pl-k\">*<\/span> <span class=\"pl-smi\">range<\/span>.<span class=\"pl-smi\">Item2<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L151\" class=\"blob-num js-line-number\" data-line-number=\"151\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC151\" class=\"blob-code blob-code-inner js-file-line\"> );<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L152\" class=\"blob-num js-line-number\" data-line-number=\"152\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC152\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L153\" class=\"blob-num js-line-number\" data-line-number=\"153\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC153\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L154\" class=\"blob-num js-line-number\" data-line-number=\"154\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC154\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L155\" class=\"blob-num js-line-number\" data-line-number=\"155\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC155\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"><span class=\"pl-c\">//<\/span> Adapted version of fast XorShift<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L156\" class=\"blob-num js-line-number\" data-line-number=\"156\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC156\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"><span class=\"pl-c\">//<\/span> https://bitbucket.org/rstarkov/demoxorshift/src/tip/Xorshift.cs?fileviewer=file-view-default<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L157\" class=\"blob-num js-line-number\" data-line-number=\"157\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC157\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">sealed<\/span> <span class=\"pl-k\">class<\/span> <span class=\"pl-en\">RndPixelFiller<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L158\" class=\"blob-num js-line-number\" data-line-number=\"158\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC158\" class=\"blob-code blob-code-inner js-file-line\">{<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L159\" class=\"blob-num js-line-number\" data-line-number=\"159\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC159\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">readonly<\/span> <span class=\"pl-k\">uint<\/span>[] <span class=\"pl-smi\">pixels<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">Enumerable<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L160\" class=\"blob-num js-line-number\" data-line-number=\"160\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC160\" class=\"blob-code blob-code-inner js-file-line\"> .<span class=\"pl-en\">Range<\/span>(<span class=\"pl-c1\">0<\/span>, <span class=\"pl-c1\">8<\/span> <span class=\"pl-c\"><span class=\"pl-c\">/*<\/span> (2 ^ 3) RGB combinations <span class=\"pl-c\">*/<\/span><\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L161\" class=\"blob-num js-line-number\" data-line-number=\"161\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC161\" class=\"blob-code blob-code-inner js-file-line\"> .<span class=\"pl-en\">Select<\/span>(<span class=\"pl-smi\">MaskToArgb<\/span>).<span class=\"pl-en\">ToArray<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L162\" class=\"blob-num js-line-number\" data-line-number=\"162\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC162\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L163\" class=\"blob-num js-line-number\" data-line-number=\"163\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC163\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">uint<\/span> <span class=\"pl-en\">MaskToArgb<\/span>(<span class=\"pl-k\">int<\/span> <span class=\"pl-smi\">mask<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L164\" class=\"blob-num js-line-number\" data-line-number=\"164\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC164\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L165\" class=\"blob-num js-line-number\" data-line-number=\"165\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC165\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">return<\/span> ((<span class=\"pl-smi\">mask<\/span> <span class=\"pl-k\">&<\/span> <span class=\"pl-c1\">4<\/span>) <span class=\"pl-k\">==<\/span> <span class=\"pl-c1\">4<\/span> <span class=\"pl-k\">?<\/span> <span class=\"pl-c1\">0xffff0000<\/span> <span class=\"pl-k\">:<\/span> <span class=\"pl-c1\">0xff000000<\/span>) <span class=\"pl-k\">|<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L166\" class=\"blob-num js-line-number\" data-line-number=\"166\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC166\" class=\"blob-code blob-code-inner js-file-line\"> ((<span class=\"pl-smi\">mask<\/span> <span class=\"pl-k\">&<\/span> <span class=\"pl-c1\">2<\/span>) <span class=\"pl-k\">==<\/span> <span class=\"pl-c1\">2<\/span> <span class=\"pl-k\">?<\/span> <span class=\"pl-c1\">0xff00ff00<\/span> <span class=\"pl-k\">:<\/span> <span class=\"pl-c1\">0xff000000<\/span>) <span class=\"pl-k\">|<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L167\" class=\"blob-num js-line-number\" data-line-number=\"167\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC167\" class=\"blob-code blob-code-inner js-file-line\"> ((<span class=\"pl-smi\">mask<\/span> <span class=\"pl-k\">&<\/span> <span class=\"pl-c1\">1<\/span>) <span class=\"pl-k\">==<\/span> <span class=\"pl-c1\">1<\/span> <span class=\"pl-k\">?<\/span> <span class=\"pl-c1\">0xff0000ff<\/span> <span class=\"pl-k\">:<\/span> <span class=\"pl-c1\">0xff000000<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L168\" class=\"blob-num js-line-number\" data-line-number=\"168\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC168\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L169\" class=\"blob-num js-line-number\" data-line-number=\"169\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC169\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L170\" class=\"blob-num js-line-number\" data-line-number=\"170\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC170\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">123456789<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L171\" class=\"blob-num js-line-number\" data-line-number=\"171\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC171\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">_y<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">362436069<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L172\" class=\"blob-num js-line-number\" data-line-number=\"172\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC172\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">_z<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">521288629<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L173\" class=\"blob-num js-line-number\" data-line-number=\"173\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC173\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-c1\">88675123<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L174\" class=\"blob-num js-line-number\" data-line-number=\"174\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC174\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L175\" class=\"blob-num js-line-number\" data-line-number=\"175\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC175\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-k\">unsafe<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">FillBuffer<\/span>(<span class=\"pl-en\">IntPtr<\/span> <span class=\"pl-smi\">start<\/span>, <span class=\"pl-en\">IntPtr<\/span> <span class=\"pl-smi\">end<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L176\" class=\"blob-num js-line-number\" data-line-number=\"176\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC176\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L177\" class=\"blob-num js-line-number\" data-line-number=\"177\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC177\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span>* <span class=\"pl-smi\">pbuf<\/span> <span class=\"pl-k\">=<\/span> (<span class=\"pl-k\">uint<\/span>*)<span class=\"pl-smi\">start<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L178\" class=\"blob-num js-line-number\" data-line-number=\"178\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC178\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span>* <span class=\"pl-smi\">pend<\/span> <span class=\"pl-k\">=<\/span> (<span class=\"pl-k\">uint<\/span>*)<span class=\"pl-smi\">end<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L179\" class=\"blob-num js-line-number\" data-line-number=\"179\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC179\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L180\" class=\"blob-num js-line-number\" data-line-number=\"180\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC180\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span>* <span class=\"pl-smi\">pendQuads<\/span> <span class=\"pl-k\">=<\/span> (<span class=\"pl-smi\">pend<\/span> <span class=\"pl-k\">-<\/span> (<span class=\"pl-smi\">pend<\/span> <span class=\"pl-k\">-<\/span> <span class=\"pl-smi\">pbuf<\/span>) <span class=\"pl-k\">%<\/span> <span class=\"pl-c1\">4<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L181\" class=\"blob-num js-line-number\" data-line-number=\"181\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC181\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">while<\/span> (<span class=\"pl-smi\">pbuf<\/span> <span class=\"pl-k\"><<\/span> <span class=\"pl-smi\">pendQuads<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L182\" class=\"blob-num js-line-number\" data-line-number=\"182\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC182\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L183\" class=\"blob-num js-line-number\" data-line-number=\"183\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC183\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">tx<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\"><<<\/span> <span class=\"pl-c1\">11<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L184\" class=\"blob-num js-line-number\" data-line-number=\"184\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC184\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">ty<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_y<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_y<\/span> <span class=\"pl-k\"><<<\/span> <span class=\"pl-c1\">11<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L185\" class=\"blob-num js-line-number\" data-line-number=\"185\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC185\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">tz<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_z<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_z<\/span> <span class=\"pl-k\"><<<\/span> <span class=\"pl-c1\">11<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L186\" class=\"blob-num js-line-number\" data-line-number=\"186\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC186\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">tw<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\"><<<\/span> <span class=\"pl-c1\">11<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L187\" class=\"blob-num js-line-number\" data-line-number=\"187\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC187\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">*<\/span>(<span class=\"pl-smi\">pbuf<\/span><span class=\"pl-k\">++<\/span>) <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">pixels<\/span>[(<span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">19<\/span>) <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">tx<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">tx<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">8<\/span>))) <span class=\"pl-k\">%<\/span> <span class=\"pl-c1\">8<\/span>];<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L188\" class=\"blob-num js-line-number\" data-line-number=\"188\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC188\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">*<\/span>(<span class=\"pl-smi\">pbuf<\/span><span class=\"pl-k\">++<\/span>) <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">pixels<\/span>[(<span class=\"pl-smi\">_y<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">19<\/span>) <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">ty<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">ty<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">8<\/span>))) <span class=\"pl-k\">%<\/span> <span class=\"pl-c1\">8<\/span>];<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L189\" class=\"blob-num js-line-number\" data-line-number=\"189\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC189\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">*<\/span>(<span class=\"pl-smi\">pbuf<\/span><span class=\"pl-k\">++<\/span>) <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">pixels<\/span>[(<span class=\"pl-smi\">_z<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_y<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_y<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">19<\/span>) <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">tz<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">tz<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">8<\/span>))) <span class=\"pl-k\">%<\/span> <span class=\"pl-c1\">8<\/span>];<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L190\" class=\"blob-num js-line-number\" data-line-number=\"190\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC190\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">*<\/span>(<span class=\"pl-smi\">pbuf<\/span><span class=\"pl-k\">++<\/span>) <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">pixels<\/span>[(<span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_z<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_z<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">19<\/span>) <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">tw<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">tw<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">8<\/span>))) <span class=\"pl-k\">%<\/span> <span class=\"pl-c1\">8<\/span>];<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L191\" class=\"blob-num js-line-number\" data-line-number=\"191\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC191\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L192\" class=\"blob-num js-line-number\" data-line-number=\"192\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC192\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L193\" class=\"blob-num js-line-number\" data-line-number=\"193\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC193\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">if<\/span> (<span class=\"pl-smi\">pbuf<\/span> <span class=\"pl-k\"><<\/span> <span class=\"pl-smi\">pend<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L194\" class=\"blob-num js-line-number\" data-line-number=\"194\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC194\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L195\" class=\"blob-num js-line-number\" data-line-number=\"195\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC195\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">uint<\/span> <span class=\"pl-smi\">t<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\"><<<\/span> <span class=\"pl-c1\">11<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L196\" class=\"blob-num js-line-number\" data-line-number=\"196\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC196\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">_x<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_y<\/span>; <span class=\"pl-smi\">_y<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_z<\/span>; <span class=\"pl-smi\">_z<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_w<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L197\" class=\"blob-num js-line-number\" data-line-number=\"197\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC197\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">t<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">_w<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">19<\/span>) <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">t<\/span> <span class=\"pl-k\">^<\/span> (<span class=\"pl-smi\">t<\/span> <span class=\"pl-k\">>><\/span> <span class=\"pl-c1\">8<\/span>));<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L198\" class=\"blob-num js-line-number\" data-line-number=\"198\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC198\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L199\" class=\"blob-num js-line-number\" data-line-number=\"199\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC199\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">while<\/span> (<span class=\"pl-c1\">true<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L200\" class=\"blob-num js-line-number\" data-line-number=\"200\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC200\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L201\" class=\"blob-num js-line-number\" data-line-number=\"201\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC201\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">*<\/span>(<span class=\"pl-smi\">pbuf<\/span><span class=\"pl-k\">++<\/span>) <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">pixels<\/span>[(<span class=\"pl-smi\">t<\/span> <span class=\"pl-k\">&<\/span> <span class=\"pl-c1\">0xFF<\/span>) <span class=\"pl-k\">%<\/span> <span class=\"pl-c1\">8<\/span>];<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L202\" class=\"blob-num js-line-number\" data-line-number=\"202\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC202\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">if<\/span> (<span class=\"pl-smi\">pbuf<\/span> <span class=\"pl-k\">==<\/span> <span class=\"pl-smi\">pend<\/span>) <span class=\"pl-k\">break<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L203\" class=\"blob-num js-line-number\" data-line-number=\"203\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC203\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">t<\/span> <span class=\"pl-k\">>>=<\/span> <span class=\"pl-c1\">8<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L204\" class=\"blob-num js-line-number\" data-line-number=\"204\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC204\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L205\" class=\"blob-num js-line-number\" data-line-number=\"205\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC205\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L206\" class=\"blob-num js-line-number\" data-line-number=\"206\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC206\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L207\" class=\"blob-num js-line-number\" data-line-number=\"207\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC207\" class=\"blob-code blob-code-inner js-file-line\"> <\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L208\" class=\"blob-num js-line-number\" data-line-number=\"208\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC208\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-c\"><span class=\"pl-c\">/*<\/span>public static unsafe void TestFill()<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L209\" class=\"blob-num js-line-number\" data-line-number=\"209\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC209\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> {<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L210\" class=\"blob-num js-line-number\" data-line-number=\"210\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC210\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> var b = new uint[7];<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L211\" class=\"blob-num js-line-number\" data-line-number=\"211\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC211\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> fixed (uint* pb = b)<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L212\" class=\"blob-num js-line-number\" data-line-number=\"212\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC212\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> {<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L213\" class=\"blob-num js-line-number\" data-line-number=\"213\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC213\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> var p = new IntPtr(pb);<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L214\" class=\"blob-num js-line-number\" data-line-number=\"214\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC214\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> new RndPixelFiller()<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L215\" class=\"blob-num js-line-number\" data-line-number=\"215\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC215\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> .FillBuffer(p, IntPtr.Add(p, b.Length * sizeof(uint)));<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L216\" class=\"blob-num js-line-number\" data-line-number=\"216\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC216\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> }<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L217\" class=\"blob-num js-line-number\" data-line-number=\"217\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC217\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c\"> }<span class=\"pl-c\">*/<\/span><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L218\" class=\"blob-num js-line-number\" data-line-number=\"218\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC218\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L219\" class=\"blob-num js-line-number\" data-line-number=\"219\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC219\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L220\" class=\"blob-num js-line-number\" data-line-number=\"220\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC220\" class=\"blob-code blob-code-inner js-file-line\">[<span class=\"pl-en\">DebuggerDisplay<\/span>(<span class=\"pl-s\"><span class=\"pl-pds\">"<\/span>Avg = {Avg}, Max = {Max}, Min = {Min}, Cnt = {SamplesCount}<span class=\"pl-pds\">"<\/span><\/span>)]<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L221\" class=\"blob-num js-line-number\" data-line-number=\"221\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC221\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">public<\/span> <span class=\"pl-k\">sealed<\/span> <span class=\"pl-k\">class<\/span> <span class=\"pl-en\">TimeStats<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L222\" class=\"blob-num js-line-number\" data-line-number=\"222\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC222\" class=\"blob-code blob-code-inner js-file-line\">{<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L223\" class=\"blob-num js-line-number\" data-line-number=\"223\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC223\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">private<\/span> <span class=\"pl-k\">readonly<\/span> <span class=\"pl-en\">Stopwatch<\/span> <span class=\"pl-smi\">_stopwatch<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">Stopwatch<\/span>.<span class=\"pl-en\">StartNew<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L224\" class=\"blob-num js-line-number\" data-line-number=\"224\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC224\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L225\" class=\"blob-num js-line-number\" data-line-number=\"225\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC225\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-en\">TimeSpan<\/span> <span class=\"pl-smi\">Max<\/span> { <span class=\"pl-k\">get<\/span>; <span class=\"pl-k\">private<\/span> <span class=\"pl-k\">set<\/span>; }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L226\" class=\"blob-num js-line-number\" data-line-number=\"226\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC226\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-en\">TimeSpan<\/span> <span class=\"pl-smi\">Min<\/span> { <span class=\"pl-k\">get<\/span>; <span class=\"pl-k\">private<\/span> <span class=\"pl-k\">set<\/span>; }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L227\" class=\"blob-num js-line-number\" data-line-number=\"227\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC227\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-en\">TimeSpan<\/span> <span class=\"pl-smi\">Avg<\/span> { <span class=\"pl-k\">get<\/span>; <span class=\"pl-k\">private<\/span> <span class=\"pl-k\">set<\/span>; }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L228\" class=\"blob-num js-line-number\" data-line-number=\"228\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC228\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-k\">long<\/span> <span class=\"pl-smi\">SamplesCount<\/span> { <span class=\"pl-k\">get<\/span>; <span class=\"pl-k\">private<\/span> <span class=\"pl-k\">set<\/span>; }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L229\" class=\"blob-num js-line-number\" data-line-number=\"229\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC229\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L230\" class=\"blob-num js-line-number\" data-line-number=\"230\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC230\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">BeginSample<\/span>()<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L231\" class=\"blob-num js-line-number\" data-line-number=\"231\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC231\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L232\" class=\"blob-num js-line-number\" data-line-number=\"232\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC232\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">_stopwatch<\/span>.<span class=\"pl-en\">Restart<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L233\" class=\"blob-num js-line-number\" data-line-number=\"233\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC233\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L234\" class=\"blob-num js-line-number\" data-line-number=\"234\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC234\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L235\" class=\"blob-num js-line-number\" data-line-number=\"235\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC235\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-en\">TimeSpan<\/span> <span class=\"pl-en\">EndSample<\/span>()<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L236\" class=\"blob-num js-line-number\" data-line-number=\"236\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC236\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L237\" class=\"blob-num js-line-number\" data-line-number=\"237\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC237\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">sample<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">_stopwatch<\/span>.<span class=\"pl-smi\">Elapsed<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L238\" class=\"blob-num js-line-number\" data-line-number=\"238\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC238\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-en\">AddSample<\/span>(<span class=\"pl-smi\">sample<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L239\" class=\"blob-num js-line-number\" data-line-number=\"239\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC239\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">return<\/span> <span class=\"pl-smi\">sample<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L240\" class=\"blob-num js-line-number\" data-line-number=\"240\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC240\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L241\" class=\"blob-num js-line-number\" data-line-number=\"241\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC241\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L242\" class=\"blob-num js-line-number\" data-line-number=\"242\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC242\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">Combine<\/span>(<span class=\"pl-en\">TimeStats<\/span> <span class=\"pl-smi\">that<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L243\" class=\"blob-num js-line-number\" data-line-number=\"243\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC243\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L244\" class=\"blob-num js-line-number\" data-line-number=\"244\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC244\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">if<\/span> (<span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">SamplesCount<\/span> <span class=\"pl-k\">==<\/span> <span class=\"pl-c1\">0<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L245\" class=\"blob-num js-line-number\" data-line-number=\"245\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC245\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L246\" class=\"blob-num js-line-number\" data-line-number=\"246\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC246\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">return<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L247\" class=\"blob-num js-line-number\" data-line-number=\"247\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC247\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L248\" class=\"blob-num js-line-number\" data-line-number=\"248\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC248\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">if<\/span> (<span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">SamplesCount<\/span> <span class=\"pl-k\">==<\/span> <span class=\"pl-c1\">0<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L249\" class=\"blob-num js-line-number\" data-line-number=\"249\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC249\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L250\" class=\"blob-num js-line-number\" data-line-number=\"250\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC250\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Max<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">Max<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L251\" class=\"blob-num js-line-number\" data-line-number=\"251\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC251\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Min<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">Min<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L252\" class=\"blob-num js-line-number\" data-line-number=\"252\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC252\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Avg<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">Avg<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L253\" class=\"blob-num js-line-number\" data-line-number=\"253\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC253\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">SamplesCount<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">SamplesCount<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L254\" class=\"blob-num js-line-number\" data-line-number=\"254\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC254\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L255\" class=\"blob-num js-line-number\" data-line-number=\"255\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC255\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">else<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L256\" class=\"blob-num js-line-number\" data-line-number=\"256\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC256\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L257\" class=\"blob-num js-line-number\" data-line-number=\"257\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC257\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">totalSamplesCount<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">SamplesCount<\/span> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">SamplesCount<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L258\" class=\"blob-num js-line-number\" data-line-number=\"258\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC258\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Max<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">TimeSpan<\/span>.<span class=\"pl-en\">FromTicks<\/span>(<span class=\"pl-smi\">Math<\/span>.<span class=\"pl-en\">Max<\/span>(<span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Max<\/span>.<span class=\"pl-smi\">Ticks<\/span>, <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">Max<\/span>.<span class=\"pl-smi\">Ticks<\/span>));<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L259\" class=\"blob-num js-line-number\" data-line-number=\"259\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC259\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Min<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">TimeSpan<\/span>.<span class=\"pl-en\">FromTicks<\/span>(<span class=\"pl-smi\">Math<\/span>.<span class=\"pl-en\">Min<\/span>(<span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Min<\/span>.<span class=\"pl-smi\">Ticks<\/span>, <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">Min<\/span>.<span class=\"pl-smi\">Ticks<\/span>));<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L260\" class=\"blob-num js-line-number\" data-line-number=\"260\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC260\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Avg<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">TimeSpan<\/span>.<span class=\"pl-en\">FromTicks<\/span>((<span class=\"pl-smi\">long<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L261\" class=\"blob-num js-line-number\" data-line-number=\"261\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC261\" class=\"blob-code blob-code-inner js-file-line\"> (<span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">Avg<\/span>.<span class=\"pl-smi\">Ticks<\/span> <span class=\"pl-k\">*<\/span> ((<span class=\"pl-k\">double<\/span>)<span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">SamplesCount<\/span> <span class=\"pl-k\">/<\/span> <span class=\"pl-smi\">totalSamplesCount<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L262\" class=\"blob-num js-line-number\" data-line-number=\"262\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC262\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">Avg<\/span>.<span class=\"pl-smi\">Ticks<\/span> <span class=\"pl-k\">*<\/span> ((<span class=\"pl-k\">double<\/span>)<span class=\"pl-smi\">that<\/span>.<span class=\"pl-smi\">SamplesCount<\/span> <span class=\"pl-k\">/<\/span> <span class=\"pl-smi\">totalSamplesCount<\/span>))<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L263\" class=\"blob-num js-line-number\" data-line-number=\"263\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC263\" class=\"blob-code blob-code-inner js-file-line\"> );<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L264\" class=\"blob-num js-line-number\" data-line-number=\"264\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC264\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">this<\/span>.<span class=\"pl-smi\">SamplesCount<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">totalSamplesCount<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L265\" class=\"blob-num js-line-number\" data-line-number=\"265\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC265\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L266\" class=\"blob-num js-line-number\" data-line-number=\"266\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC266\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L267\" class=\"blob-num js-line-number\" data-line-number=\"267\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC267\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L268\" class=\"blob-num js-line-number\" data-line-number=\"268\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC268\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-k\">static<\/span> <span class=\"pl-en\">TimeStats<\/span> <span class=\"pl-k\">operator<\/span> <span class=\"pl-en\">+<\/span>(<span class=\"pl-en\">TimeStats<\/span> <span class=\"pl-smi\">stats1<\/span>, <span class=\"pl-en\">TimeStats<\/span> <span class=\"pl-smi\">stats2<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L269\" class=\"blob-num js-line-number\" data-line-number=\"269\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC269\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L270\" class=\"blob-num js-line-number\" data-line-number=\"270\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC270\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">combinedStats<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-k\">new<\/span> <span class=\"pl-en\">TimeStats<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L271\" class=\"blob-num js-line-number\" data-line-number=\"271\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC271\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">combinedStats<\/span>.<span class=\"pl-en\">Combine<\/span>(<span class=\"pl-smi\">stats1<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L272\" class=\"blob-num js-line-number\" data-line-number=\"272\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC272\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">combinedStats<\/span>.<span class=\"pl-en\">Combine<\/span>(<span class=\"pl-smi\">stats2<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L273\" class=\"blob-num js-line-number\" data-line-number=\"273\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC273\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">return<\/span> <span class=\"pl-smi\">combinedStats<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L274\" class=\"blob-num js-line-number\" data-line-number=\"274\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC274\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L275\" class=\"blob-num js-line-number\" data-line-number=\"275\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC275\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L276\" class=\"blob-num js-line-number\" data-line-number=\"276\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC276\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">public<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">AddSample<\/span>(<span class=\"pl-en\">TimeSpan<\/span> <span class=\"pl-smi\">sample<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L277\" class=\"blob-num js-line-number\" data-line-number=\"277\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC277\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L278\" class=\"blob-num js-line-number\" data-line-number=\"278\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC278\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">var<\/span> <span class=\"pl-smi\">samplesCount<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-k\">++<\/span><span class=\"pl-smi\">SamplesCount<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L279\" class=\"blob-num js-line-number\" data-line-number=\"279\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC279\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">if<\/span> (<span class=\"pl-smi\">samplesCount<\/span> <span class=\"pl-k\">==<\/span> <span class=\"pl-c1\">1<\/span>)<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L280\" class=\"blob-num js-line-number\" data-line-number=\"280\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC280\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L281\" class=\"blob-num js-line-number\" data-line-number=\"281\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC281\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Max<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">sample<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L282\" class=\"blob-num js-line-number\" data-line-number=\"282\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC282\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Min<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">sample<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L283\" class=\"blob-num js-line-number\" data-line-number=\"283\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC283\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Avg<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">sample<\/span>;<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L284\" class=\"blob-num js-line-number\" data-line-number=\"284\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC284\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L285\" class=\"blob-num js-line-number\" data-line-number=\"285\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC285\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">else<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L286\" class=\"blob-num js-line-number\" data-line-number=\"286\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC286\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L287\" class=\"blob-num js-line-number\" data-line-number=\"287\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC287\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Max<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">TimeSpan<\/span>.<span class=\"pl-en\">FromTicks<\/span>(<span class=\"pl-smi\">Math<\/span>.<span class=\"pl-en\">Max<\/span>(<span class=\"pl-smi\">Max<\/span>.<span class=\"pl-smi\">Ticks<\/span>, <span class=\"pl-smi\">sample<\/span>.<span class=\"pl-smi\">Ticks<\/span>));<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L288\" class=\"blob-num js-line-number\" data-line-number=\"288\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC288\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Min<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">TimeSpan<\/span>.<span class=\"pl-en\">FromTicks<\/span>(<span class=\"pl-smi\">Math<\/span>.<span class=\"pl-en\">Min<\/span>(<span class=\"pl-smi\">Min<\/span>.<span class=\"pl-smi\">Ticks<\/span>, <span class=\"pl-smi\">sample<\/span>.<span class=\"pl-smi\">Ticks<\/span>));<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L289\" class=\"blob-num js-line-number\" data-line-number=\"289\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC289\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Avg<\/span> <span class=\"pl-k\">=<\/span> <span class=\"pl-smi\">TimeSpan<\/span>.<span class=\"pl-en\">FromTicks<\/span>((<span class=\"pl-smi\">Avg<\/span>.<span class=\"pl-smi\">Ticks<\/span> <span class=\"pl-k\">*<\/span> (<span class=\"pl-smi\">samplesCount<\/span> <span class=\"pl-k\">-<\/span> <span class=\"pl-c1\">1<\/span>) <span class=\"pl-k\">+<\/span> <span class=\"pl-smi\">sample<\/span>.<span class=\"pl-smi\">Ticks<\/span>) <span class=\"pl-k\">/<\/span> <span class=\"pl-smi\">samplesCount<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L290\" class=\"blob-num js-line-number\" data-line-number=\"290\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC290\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L291\" class=\"blob-num js-line-number\" data-line-number=\"291\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC291\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L292\" class=\"blob-num js-line-number\" data-line-number=\"292\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC292\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L293\" class=\"blob-num js-line-number\" data-line-number=\"293\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC293\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L294\" class=\"blob-num js-line-number\" data-line-number=\"294\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC294\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-k\">static<\/span> <span class=\"pl-k\">class<\/span> <span class=\"pl-en\">Program<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L295\" class=\"blob-num js-line-number\" data-line-number=\"295\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC295\" class=\"blob-code blob-code-inner js-file-line\">{<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L296\" class=\"blob-num js-line-number\" data-line-number=\"296\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC296\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-c\"><span class=\"pl-c\">///<\/span> <<span class=\"pl-ent\"><span class=\"pl-ent\">summary<\/span><\/span>><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L297\" class=\"blob-num js-line-number\" data-line-number=\"297\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC297\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-c\"><span class=\"pl-c\">///<\/span> The main entry point for the application.<\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L298\" class=\"blob-num js-line-number\" data-line-number=\"298\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC298\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-c\"><span class=\"pl-c\">///<\/span> </<span class=\"pl-ent\"><span class=\"pl-ent\">summary<\/span><\/span>><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L299\" class=\"blob-num js-line-number\" data-line-number=\"299\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC299\" class=\"blob-code blob-code-inner js-file-line\"> [<span class=\"pl-en\">STAThread<\/span>]<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L300\" class=\"blob-num js-line-number\" data-line-number=\"300\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC300\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-k\">static<\/span> <span class=\"pl-k\">void<\/span> <span class=\"pl-en\">Main<\/span>()<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L301\" class=\"blob-num js-line-number\" data-line-number=\"301\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC301\" class=\"blob-code blob-code-inner js-file-line\"> {<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L302\" class=\"blob-num js-line-number\" data-line-number=\"302\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC302\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Application<\/span>.<span class=\"pl-en\">EnableVisualStyles<\/span>();<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L303\" class=\"blob-num js-line-number\" data-line-number=\"303\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC303\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Application<\/span>.<span class=\"pl-en\">SetCompatibleTextRenderingDefault<\/span>(<span class=\"pl-c1\">false<\/span>);<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L304\" class=\"blob-num js-line-number\" data-line-number=\"304\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC304\" class=\"blob-code blob-code-inner js-file-line\"> <span class=\"pl-smi\">Application<\/span>.<span class=\"pl-en\">Run<\/span>(<span class=\"pl-k\">new<\/span> <span class=\"pl-en\">StuckPixelFixForm<\/span>());<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L305\" class=\"blob-num js-line-number\" data-line-number=\"305\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC305\" class=\"blob-code blob-code-inner js-file-line\"> }<\/td>\n <\/tr>\n <tr>\n <td id=\"file-stuckpixelfix-cs-L306\" class=\"blob-num js-line-number\" data-line-number=\"306\"><\/td>\n <td id=\"file-stuckpixelfix-cs-LC306\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n <\/tr>\n<\/table>\n\n\n <\/div>\n\n <\/div>\n<\/div>\n\n <\/div>\n <div class=\"gist-meta\">\n <a href=\"https://gist.github.com/jimgreeno/19af40dcc5ac440e8b70b00682a12f97/raw/95199699de264c7a1f06be731ccf7bb64c3f88be/StuckPixelFix.cs\" style=\"float:right\">view raw<\/a>\n <a href=\"https://gist.github.com/jimgreeno/19af40dcc5ac440e8b70b00682a12f97#file-stuckpixelfix-cs\">StuckPixelFix.cs<\/a>\n hosted with ❤ by <a href=\"https://github.com\">GitHub<\/a>\n <\/div>\n <\/div>\n<\/div>\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement