1 /* display.c    -- Functions for the modular display
2  * $Id: display.c,v 1.3 2005/06/29 03:20:34 kvance Exp $
3  * Copyright (C) 2000 Kev Vance <kvance@kvance.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place Suite 330; Boston, MA 02111-1307, USA.
18  */
19 
20 #if defined HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23 
24 #include "display.h"
25 #include "display_stdio.h"
26 
27 #if defined(SDL)
28 #include "display_sdl.h"
29 #endif
30 #if defined(VCSA)
31 #include "display_vcsa.h"
32 #endif
33 #if defined(DOS)
34 #include "display_dos.h"
35 #endif
36 
37 displaymethod display;
38 
RegisterDisplays()39 void RegisterDisplays()
40 {
41 #if defined(DOS)
42 	display = display_dos;
43 #elif defined(SDL)
44 	display = display_sdl;
45 #if defined(VCSA)
46 	display.next = &display_vcsa;
47 #endif
48 #else
49 	display = display_stdio;
50 #endif
51 }
52