diff options
author | yokota <yokota@FreeBSD.org> | 1998-08-06 09:14:26 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1998-08-06 09:14:26 +0000 |
commit | c6de79f7a597571af387deda446358c6851e794e (patch) | |
tree | 39198f9b63ccbbb8250fece318e9434bb338326e /sys/dev/syscons/star | |
parent | 811562429d11d95a9700bde37250861a8e1da668 (diff) | |
download | FreeBSD-src-c6de79f7a597571af387deda446358c6851e794e.zip FreeBSD-src-c6de79f7a597571af387deda446358c6851e794e.tar.gz |
The daemon, snake and star savers should refuse to load if the current
video mode is the VESA mode, because they cannot work properly under the
VESA mode support as in the current form.
Diffstat (limited to 'sys/dev/syscons/star')
-rw-r--r-- | sys/dev/syscons/star/star_saver.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/syscons/star/star_saver.c b/sys/dev/syscons/star/star_saver.c index 15525cb..517a557 100644 --- a/sys/dev/syscons/star/star_saver.c +++ b/sys/dev/syscons/star/star_saver.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: star_saver.c,v 1.12 1997/07/15 14:49:39 yokota Exp $ + * $Id: star_saver.c,v 1.13 1998/01/16 17:58:55 bde Exp $ */ #include <sys/param.h> @@ -89,6 +89,9 @@ star_saver(int blank) static int star_saver_load(struct lkm_table *lkmtp, int cmd) { + if (cur_console->mode >= M_VESA_BASE) + return ENODEV; + return add_scrn_saver(star_saver); } |