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 429:e581b90c3fb3
prev424:421d68e78c46
next477:9a373f2ff009
author nkeynes
date Tue Oct 16 12:27:28 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Unbind the framebuffer after initialization
view annotate diff log raw
     1 /**
     2  * $Id: video_null.c,v 1.5 2007-10-08 11:49:35 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 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( render_buffer_t buffer, unsigned char *target )
    41 {
    42     return TRUE;
    43 }
    45 gboolean video_null_display_frame_buffer( frame_buffer_t buffer )
    46 {
    47     return TRUE;
    48 }
    50 gboolean video_null_display_blank( uint32_t colour )
    51 {
    52     return TRUE;
    53 }
    55 void video_null_display_back_buffer( void )
    56 {
    57 }
    60 struct display_driver display_null_driver = { "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_display_frame_buffer,
    68 					      video_null_display_render_buffer,
    69 					      video_null_display_blank,
    70 					      video_null_read_render_buffer };
.