filename | src/drivers/video_null.c |
changeset | 106:9048bac046c3 |
next | 144:7f0714e89aaa |
author | nkeynes |
date | Tue Mar 14 12:45:53 2006 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Move driver selection out to main at long last. Add video NULL driver for headless operation Make dcload exit() actually exit |
view | annotate | diff | log | raw |
1 /**
2 * $Id: video_null.c,v 1.1 2006-03-14 12:45:53 nkeynes Exp $
3 *
4 * Null video output driver (ie no video output whatsoever)
5 *
6 * Copyright (c) 2005 Nathan Keynes.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 */
19 #include "video.h"
21 gboolean video_null_set_output_format( uint32_t hres, uint32_t vres,
22 int colour_format )
23 {
24 return TRUE;
25 }
27 gboolean video_null_set_render_format( uint32_t hres, uint32_t vres,
28 int colour_format, gboolean tex )
29 {
30 return TRUE;
31 }
33 gboolean video_null_display_frame( video_buffer_t buffer )
34 {
35 return TRUE;
36 }
38 gboolean video_null_blank( uint32_t colour )
39 {
40 return TRUE;
41 }
43 void video_null_display_back_buffer( void )
44 {
45 }
48 struct video_driver video_null_driver = { "null",
49 NULL,
50 NULL,
51 video_null_set_output_format,
52 video_null_set_render_format,
53 video_null_display_frame,
54 video_null_blank,
55 video_null_display_back_buffer };
.