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 561:533f6b478071
prev481:3b2d6c5a19ad
next608:4f588e52bce0
author nkeynes
date Tue Jan 01 05:08:38 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Enable Id keyword on all source files
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 render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
    22 {
    23     return NULL;
    24 }
    26 void video_null_destroy_render_buffer( render_buffer_t buffer )
    27 {
    28 }
    30 gboolean video_null_set_render_target( render_buffer_t buffer )
    31 {
    32     return TRUE;
    33 }
    35 gboolean video_null_display_render_buffer( render_buffer_t buffer )
    36 {
    37     return TRUE;
    38 }
    40 gboolean video_null_read_render_buffer( unsigned char *target, render_buffer_t buffer, int rowstride, int format )
    41 {
    42     return TRUE;
    43 }
    45 void video_null_load_frame_buffer( frame_buffer_t frame, render_buffer_t buffer )
    46 {
    47 }
    49 gboolean video_null_display_blank( uint32_t colour )
    50 {
    51     return TRUE;
    52 }
    54 void video_null_display_back_buffer( void )
    55 {
    56 }
    59 struct display_driver display_null_driver = { "null", 
    60 					      NULL,
    61 					      NULL,
    62 					      NULL,
    63 					      video_null_create_render_buffer,
    64 					      video_null_destroy_render_buffer,
    65 					      video_null_set_render_target,
    66 					      video_null_load_frame_buffer,
    67 					      video_null_display_render_buffer,
    68 					      video_null_display_blank,
    69 					      video_null_read_render_buffer };
.