Search
lxdream.org :: lxdream/src/drivers/video_null.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_null.c
changeset 106:9048bac046c3
next144: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
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/drivers/video_null.c Tue Mar 14 12:45:53 2006 +0000
1.3 @@ -0,0 +1,55 @@
1.4 +/**
1.5 + * $Id: video_null.c,v 1.1 2006-03-14 12:45:53 nkeynes Exp $
1.6 + *
1.7 + * Null video output driver (ie no video output whatsoever)
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#include "video.h"
1.23 +
1.24 +gboolean video_null_set_output_format( uint32_t hres, uint32_t vres,
1.25 + int colour_format )
1.26 +{
1.27 + return TRUE;
1.28 +}
1.29 +
1.30 +gboolean video_null_set_render_format( uint32_t hres, uint32_t vres,
1.31 + int colour_format, gboolean tex )
1.32 +{
1.33 + return TRUE;
1.34 +}
1.35 +
1.36 +gboolean video_null_display_frame( video_buffer_t buffer )
1.37 +{
1.38 + return TRUE;
1.39 +}
1.40 +
1.41 +gboolean video_null_blank( uint32_t colour )
1.42 +{
1.43 + return TRUE;
1.44 +}
1.45 +
1.46 +void video_null_display_back_buffer( void )
1.47 +{
1.48 +}
1.49 +
1.50 +
1.51 +struct video_driver video_null_driver = { "null",
1.52 + NULL,
1.53 + NULL,
1.54 + video_null_set_output_format,
1.55 + video_null_set_render_format,
1.56 + video_null_display_frame,
1.57 + video_null_blank,
1.58 + video_null_display_back_buffer };
.