\hypertarget{logo__saver_8c_source}{}\doxysection{logo\+\_\+saver.\+c}
\label{logo__saver_8c_source}\index{dev/syscons/logo/logo\_saver.c@{dev/syscons/logo/logo\_saver.c}}
\mbox{\hyperlink{logo__saver_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/3-\/Clause}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 1998 Dag-\/Erling Coïdan Smørgrav}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00012}00012 \textcolor{comment}{ *    in this position and unchanged.}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00013}00013 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00014}00014 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00015}00015 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00016}00016 \textcolor{comment}{ * 3. The name of the author may not be used to endorse or promote products}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00017}00017 \textcolor{comment}{ *    derived from this software without specific prior written permission}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00018}00018 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00019}00019 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00020}00020 \textcolor{comment}{ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00021}00021 \textcolor{comment}{ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00022}00022 \textcolor{comment}{ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00023}00023 \textcolor{comment}{ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00024}00024 \textcolor{comment}{ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00025}00025 \textcolor{comment}{ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00026}00026 \textcolor{comment}{ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00027}00027 \textcolor{comment}{ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00028}00028 \textcolor{comment}{ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00029}00029 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00030}00030 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00031}00031 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/module.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/syslog.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00038}00038 \textcolor{preprocessor}{\#include <sys/consio.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00039}00039 \textcolor{preprocessor}{\#include <sys/fbio.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00040}00040 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00041}00041 \textcolor{preprocessor}{\#include <dev/fb/fbreg.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00042}00042 \textcolor{preprocessor}{\#include <dev/fb/splashreg.h>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00043}00043 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{syscons_8h}{dev/syscons/syscons.h}}>}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00045}\mbox{\hyperlink{logo__saver_8c_a1bf66374306733d33e7b6c0cded75d7b}{00045}} \textcolor{preprocessor}{\#define SAVER\_NAME       "{}logo\_saver"{}}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00047}\mbox{\hyperlink{logo__saver_8c_ae9302cc31d620f8d502ad4fb600622ab}{00047}} \textcolor{preprocessor}{\#define SET\_ORIGIN(adp, o) do \{                         \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00048}00048 \textcolor{preprocessor}{        int oo = o;                                     \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00049}00049 \textcolor{preprocessor}{        if (oo != last\_origin)                          \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00050}00050 \textcolor{preprocessor}{            vidd\_set\_win\_org(adp, last\_origin = oo);    \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00051}00051 \textcolor{preprocessor}{        \} while (0)}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00052}00052 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00053}00053 \textcolor{keyword}{extern} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}      \mbox{\hyperlink{logo__saver_8c_a8aadc6b411729b3a021cd1e9ddc37cc7}{logo\_w}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00054}00054 \textcolor{keyword}{extern} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}      \mbox{\hyperlink{logo__saver_8c_acb62e76a55958204d19f2ae708b2ece2}{logo\_h}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00055}00055 \textcolor{keyword}{extern} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}     \mbox{\hyperlink{logo__saver_8c_ab2350e7d1cdceb1b43c0a845793f40bf}{logo\_pal}}[];}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00056}00056 \textcolor{keyword}{extern} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}     \mbox{\hyperlink{logo__saver_8c_a8e8ba9c77a6bd6b71b56a0a2a99596a1}{logo\_img}}[];}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00057}00057 \textcolor{keyword}{extern} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}      \mbox{\hyperlink{logo__saver_8c_a7d1023ac704481b5157bd17263fec8ea}{logo\_img\_size}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00058}00058 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00059}\mbox{\hyperlink{logo__saver_8c_a26fe287880bc4ec25b4b68e6d3e59cb4}{00059}} \textcolor{keyword}{static} u\_char           *\mbox{\hyperlink{logo__saver_8c_a26fe287880bc4ec25b4b68e6d3e59cb4}{vid}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00060}\mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{00060}} \textcolor{keyword}{static} \textcolor{keywordtype}{int}               \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}}, \mbox{\hyperlink{logo__saver_8c_a341de0b3221e0c0f0c5766c827f242f1}{scrmode}}, \mbox{\hyperlink{logo__saver_8c_a51dd8d6cd777d66b127d0884b642e666}{bpsl}}, \mbox{\hyperlink{logo__saver_8c_a3396a316d98df733b5a5187860d92c2a}{scrw}}, \mbox{\hyperlink{logo__saver_8c_a2e9cb51790f9acde6aadcd48a3b66c86}{scrh}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00061}\mbox{\hyperlink{logo__saver_8c_a6c4737ed3d372e2e2ccc7dcc5d309bfd}{00061}} \textcolor{keyword}{static} \textcolor{keywordtype}{int}               \mbox{\hyperlink{logo__saver_8c_a6c4737ed3d372e2e2ccc7dcc5d309bfd}{blanked}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00062}00062 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00063}00063 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00064}\mbox{\hyperlink{logo__saver_8c_a2f4109e79561479ef638a653b1e8dd1f}{00064}} \mbox{\hyperlink{logo__saver_8c_a2f4109e79561479ef638a653b1e8dd1f}{logo\_blit}}(video\_adapter\_t *adp, \textcolor{keywordtype}{int} \mbox{\hyperlink{plasma__saver_8c_a6150e0515f7202e2fb518f7206ed97dc}{x}}, \textcolor{keywordtype}{int} \mbox{\hyperlink{plasma__saver_8c_a0a2f84ed7838f07779ae24c5a9086d33}{y}})}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00065}00065 \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00066}00066         \textcolor{keywordtype}{int} d, l, o, p;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00067}00067         \textcolor{keywordtype}{int} last\_origin = -\/1;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00068}00068 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00069}00069         \textcolor{keywordflow}{for} (o = 0, p = \mbox{\hyperlink{plasma__saver_8c_a0a2f84ed7838f07779ae24c5a9086d33}{y}} * \mbox{\hyperlink{logo__saver_8c_a51dd8d6cd777d66b127d0884b642e666}{bpsl}} + \mbox{\hyperlink{plasma__saver_8c_a6150e0515f7202e2fb518f7206ed97dc}{x}}; p > \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}}; p -\/= \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}})}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00070}00070                 o += \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00071}00071         \mbox{\hyperlink{logo__saver_8c_ae9302cc31d620f8d502ad4fb600622ab}{SET\_ORIGIN}}(adp, o);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00072}00072 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00073}00073         \textcolor{keywordflow}{for} (d = 0; d < \mbox{\hyperlink{logo__saver_8c_a7d1023ac704481b5157bd17263fec8ea}{logo\_img\_size}}; d += \mbox{\hyperlink{logo__saver_8c_a8aadc6b411729b3a021cd1e9ddc37cc7}{logo\_w}}) \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00074}00074                 \textcolor{keywordflow}{if} (p + \mbox{\hyperlink{logo__saver_8c_a8aadc6b411729b3a021cd1e9ddc37cc7}{logo\_w}} < \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}}) \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00075}00075                         bcopy(\mbox{\hyperlink{logo__saver_8c_a8e8ba9c77a6bd6b71b56a0a2a99596a1}{logo\_img}} + d, \mbox{\hyperlink{logo__saver_8c_a26fe287880bc4ec25b4b68e6d3e59cb4}{vid}} + p, \mbox{\hyperlink{logo__saver_8c_a8aadc6b411729b3a021cd1e9ddc37cc7}{logo\_w}});}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00076}00076                         p += \mbox{\hyperlink{logo__saver_8c_a51dd8d6cd777d66b127d0884b642e666}{bpsl}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00077}00077                 \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (p < \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}}) \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00078}00078                         l = \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}} -\/ p;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00079}00079                         bcopy(\mbox{\hyperlink{logo__saver_8c_a8e8ba9c77a6bd6b71b56a0a2a99596a1}{logo\_img}} + d, \mbox{\hyperlink{logo__saver_8c_a26fe287880bc4ec25b4b68e6d3e59cb4}{vid}} + p, l);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00080}00080                         \mbox{\hyperlink{logo__saver_8c_ae9302cc31d620f8d502ad4fb600622ab}{SET\_ORIGIN}}(adp, (o += \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}}));}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00081}00081                         bcopy(\mbox{\hyperlink{logo__saver_8c_a8e8ba9c77a6bd6b71b56a0a2a99596a1}{logo\_img}} + d + l, \mbox{\hyperlink{logo__saver_8c_a26fe287880bc4ec25b4b68e6d3e59cb4}{vid}}, \mbox{\hyperlink{logo__saver_8c_a8aadc6b411729b3a021cd1e9ddc37cc7}{logo\_w}} -\/ l);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00082}00082                         p += \mbox{\hyperlink{logo__saver_8c_a51dd8d6cd777d66b127d0884b642e666}{bpsl}} -\/ \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00083}00083                 \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00084}00084                         p -\/= \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00085}00085                         \mbox{\hyperlink{logo__saver_8c_ae9302cc31d620f8d502ad4fb600622ab}{SET\_ORIGIN}}(adp, (o += \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}}));}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00086}00086                         bcopy(\mbox{\hyperlink{logo__saver_8c_a8e8ba9c77a6bd6b71b56a0a2a99596a1}{logo\_img}} + d, \mbox{\hyperlink{logo__saver_8c_a26fe287880bc4ec25b4b68e6d3e59cb4}{vid}} + p, \mbox{\hyperlink{logo__saver_8c_a8aadc6b411729b3a021cd1e9ddc37cc7}{logo\_w}});}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00087}00087                         p += \mbox{\hyperlink{logo__saver_8c_a51dd8d6cd777d66b127d0884b642e666}{bpsl}};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00088}00088                 \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00089}00089         \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00090}00090 \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00091}00091 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00092}00092 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00093}\mbox{\hyperlink{logo__saver_8c_a64bee738bbd62e7025e7af71252396a1}{00093}} \mbox{\hyperlink{logo__saver_8c_a64bee738bbd62e7025e7af71252396a1}{logo\_update}}(video\_adapter\_t *adp)}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00094}00094 \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00095}00095         \textcolor{keyword}{static} \textcolor{keywordtype}{int} xpos = 0, ypos = 0;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00096}00096         \textcolor{keyword}{static} \textcolor{keywordtype}{int} xinc = 1, yinc = 1;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00097}00097 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00098}00098         \textcolor{comment}{/* Turn when you hit the edge */}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00099}00099         \textcolor{keywordflow}{if} ((xpos + \mbox{\hyperlink{logo__saver_8c_a8aadc6b411729b3a021cd1e9ddc37cc7}{logo\_w}} + xinc > \mbox{\hyperlink{logo__saver_8c_a3396a316d98df733b5a5187860d92c2a}{scrw}}) || (xpos + xinc < 0))}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00100}00100                 xinc = -\/xinc;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00101}00101         \textcolor{keywordflow}{if} ((ypos + \mbox{\hyperlink{logo__saver_8c_acb62e76a55958204d19f2ae708b2ece2}{logo\_h}} + yinc > \mbox{\hyperlink{logo__saver_8c_a2e9cb51790f9acde6aadcd48a3b66c86}{scrh}}) || (ypos + yinc < 0))}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00102}00102                 yinc = -\/yinc;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00103}00103         xpos += xinc;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00104}00104         ypos += yinc;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00105}00105 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00106}00106         \textcolor{comment}{/* XXX Relies on margin around logo to erase trail */}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00107}00107         \mbox{\hyperlink{logo__saver_8c_a2f4109e79561479ef638a653b1e8dd1f}{logo\_blit}}(adp, xpos, ypos);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00108}00108 \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00109}00109 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00110}00110 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00111}\mbox{\hyperlink{logo__saver_8c_a32c3248e100db05ecc4f8e7eed79c4d4}{00111}} \mbox{\hyperlink{logo__saver_8c_a32c3248e100db05ecc4f8e7eed79c4d4}{logo\_saver}}(video\_adapter\_t *adp, \textcolor{keywordtype}{int} blank)}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00112}00112 \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00113}00113         \textcolor{keywordtype}{int} pl;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00114}00114 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00115}00115         \textcolor{keywordflow}{if} (blank) \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00116}00116                 \textcolor{comment}{/* switch to graphics mode */}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00117}00117                 \textcolor{keywordflow}{if} (\mbox{\hyperlink{logo__saver_8c_a6c4737ed3d372e2e2ccc7dcc5d309bfd}{blanked}} <= 0) \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00118}00118                         pl = splhigh();}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00119}00119                         vidd\_set\_mode(adp, \mbox{\hyperlink{logo__saver_8c_a341de0b3221e0c0f0c5766c827f242f1}{scrmode}});}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00120}00120                         vidd\_load\_palette(adp, \mbox{\hyperlink{logo__saver_8c_ab2350e7d1cdceb1b43c0a845793f40bf}{logo\_pal}});}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00121}00121                         vidd\_set\_border(adp, 0);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00122}00122                         \mbox{\hyperlink{logo__saver_8c_a6c4737ed3d372e2e2ccc7dcc5d309bfd}{blanked}}++;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00123}00123                         \mbox{\hyperlink{logo__saver_8c_a26fe287880bc4ec25b4b68e6d3e59cb4}{vid}} = (u\_char *)adp-\/>va\_window;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00124}00124                         \mbox{\hyperlink{logo__saver_8c_ad778fec4abd2bd32f8f3d585609a58c0}{banksize}} = adp-\/>va\_window\_size;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00125}00125                         \mbox{\hyperlink{logo__saver_8c_a51dd8d6cd777d66b127d0884b642e666}{bpsl}} = adp-\/>va\_line\_width;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00126}00126                         splx(pl);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00127}00127                         vidd\_clear(adp);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00128}00128                 \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00129}00129                 \mbox{\hyperlink{logo__saver_8c_a64bee738bbd62e7025e7af71252396a1}{logo\_update}}(adp);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00130}00130         \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00131}00131                 \mbox{\hyperlink{logo__saver_8c_a6c4737ed3d372e2e2ccc7dcc5d309bfd}{blanked}} = 0;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00132}00132         \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00133}00133         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00134}00134 \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00135}00135 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00136}00136 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00137}\mbox{\hyperlink{logo__saver_8c_acd4086bf050f39d25d89e8abe277438d}{00137}} \mbox{\hyperlink{logo__saver_8c_acd4086bf050f39d25d89e8abe277438d}{logo\_init}}(video\_adapter\_t *adp)}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00138}00138 \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00139}00139         video\_info\_t info;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00140}00140 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00141}00141         \textcolor{keywordflow}{if} (!vidd\_get\_info(adp, M\_VESA\_CG800x600, \&info)) \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00142}00142                 \mbox{\hyperlink{logo__saver_8c_a341de0b3221e0c0f0c5766c827f242f1}{scrmode}} = M\_VESA\_CG800x600;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00143}00143         \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (!vidd\_get\_info(adp, M\_VGA\_CG320, \&info)) \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00144}00144                 \mbox{\hyperlink{logo__saver_8c_a341de0b3221e0c0f0c5766c827f242f1}{scrmode}} = M\_VGA\_CG320;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00145}00145         \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00146}00146                 log(LOG\_NOTICE,}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00147}00147                     \textcolor{stringliteral}{"{}\%s: the console does not support M\_VGA\_CG320\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00148}00148                     \mbox{\hyperlink{logo__saver_8c_a1bf66374306733d33e7b6c0cded75d7b}{SAVER\_NAME}});}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00149}00149                 \textcolor{keywordflow}{return} (ENODEV);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00150}00150         \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00151}00151 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00152}00152         \mbox{\hyperlink{logo__saver_8c_a3396a316d98df733b5a5187860d92c2a}{scrw}} = info.vi\_width;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00153}00153         \mbox{\hyperlink{logo__saver_8c_a2e9cb51790f9acde6aadcd48a3b66c86}{scrh}} = info.vi\_height;}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00154}00154 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00155}00155         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00156}00156 \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00157}00157 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00158}00158 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00159}\mbox{\hyperlink{logo__saver_8c_ac5b42473de6a725042cb02599c38dbf4}{00159}} \mbox{\hyperlink{logo__saver_8c_ac5b42473de6a725042cb02599c38dbf4}{logo\_term}}(video\_adapter\_t *adp)}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00160}00160 \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00161}00161         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00162}00162 \}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00163}00163 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00164}\mbox{\hyperlink{logo__saver_8c_a1c7471fc225c60b9910f74f599852e5e}{00164}} \textcolor{keyword}{static} scrn\_saver\_t \mbox{\hyperlink{logo__saver_8c_a1c7471fc225c60b9910f74f599852e5e}{logo\_module}} = \{}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00165}00165         \mbox{\hyperlink{logo__saver_8c_a1bf66374306733d33e7b6c0cded75d7b}{SAVER\_NAME}},}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00166}00166         \mbox{\hyperlink{logo__saver_8c_acd4086bf050f39d25d89e8abe277438d}{logo\_init}},}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00167}00167         \mbox{\hyperlink{logo__saver_8c_ac5b42473de6a725042cb02599c38dbf4}{logo\_term}},}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00168}00168         \mbox{\hyperlink{logo__saver_8c_a32c3248e100db05ecc4f8e7eed79c4d4}{logo\_saver}},}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00169}00169         NULL}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00170}00170 \};}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00171}00171 }
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00172}00172 \textcolor{preprocessor}{\#ifdef BEASTIE\_LOGO}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00173}00173 \mbox{\hyperlink{logo__saver_8c_a27d79710af597d0464c6da60f0cfae8a}{SAVER\_MODULE}}(beastie\_saver, \mbox{\hyperlink{logo__saver_8c_a1c7471fc225c60b9910f74f599852e5e}{logo\_module}});}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00174}00174 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00175}\mbox{\hyperlink{logo__saver_8c_a27d79710af597d0464c6da60f0cfae8a}{00175}} \mbox{\hyperlink{logo__saver_8c_a27d79710af597d0464c6da60f0cfae8a}{SAVER\_MODULE}}(\mbox{\hyperlink{logo__saver_8c_a32c3248e100db05ecc4f8e7eed79c4d4}{logo\_saver}}, \mbox{\hyperlink{logo__saver_8c_a1c7471fc225c60b9910f74f599852e5e}{logo\_module}});}
\DoxyCodeLine{\Hypertarget{logo__saver_8c_source_l00176}00176 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
