Search
lxdream.org :: lxdream/src/drivers/video_null.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_null.c
changeset 144:7f0714e89aaa
prev106:9048bac046c3
next352:f0df7a6d4703
author nkeynes
date Thu Jun 15 10:25:45 2006 +0000 (17 years ago)
permissions -rw-r--r--
last change Add P4 I/O tracing
Add ability to set I/O trace by region address
view annotate diff log raw
     1 /**
     2  * $Id: video_null.c,v 1.2 2006-05-15 08:28:52 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 "display.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 display_driver display_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 };
.