filename | src/drivers/video_null.c |
changeset | 736:a02d1475ccfd |
prev | 700:4650d0c7f6f9 |
next | 805:b355f7b3ff2e |
author | nkeynes |
date | Mon Jul 28 03:41:25 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Implement key-binding configuration pane for Cocoa UI Minor tweaks for consistency and static-correctness |
view | annotate | diff | log | raw |
1 /**
2 * $Id$
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 "display.h"
21 static render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
22 {
23 return NULL;
24 }
26 static void video_null_destroy_render_buffer( render_buffer_t buffer )
27 {
28 }
30 static gboolean video_null_set_render_target( render_buffer_t buffer )
31 {
32 return TRUE;
33 }
35 static void video_null_display_render_buffer( render_buffer_t buffer )
36 {
37 }
39 static gboolean video_null_read_render_buffer( unsigned char *target,
40 render_buffer_t buffer,
41 int rowstride, int format )
42 {
43 return TRUE;
44 }
46 static void video_null_load_frame_buffer( frame_buffer_t frame,
47 render_buffer_t buffer )
48 {
49 }
51 static void video_null_display_blank( uint32_t colour )
52 {
53 }
56 struct display_driver display_null_driver = {
57 "null",
58 N_("Null (no video) driver"),
59 NULL,
60 NULL,
61 NULL,
62 NULL,
63 NULL,
64 video_null_create_render_buffer,
65 video_null_destroy_render_buffer,
66 video_null_set_render_target,
67 video_null_load_frame_buffer,
68 video_null_display_render_buffer,
69 video_null_display_blank,
70 video_null_read_render_buffer };
.