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 669:ab344e42bca9
prev614:a2d239d4438a
next700:4650d0c7f6f9
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
view annotate diff log raw
     4 /**
     5  * $Id$
     6  *
     7  * Null video output driver (ie no video output whatsoever)
     8  *
     9  * Copyright (c) 2005 Nathan Keynes.
    10  *
    11  * This program is free software; you can redistribute it and/or modify
    12  * it under the terms of the GNU General Public License as published by
    13  * the Free Software Foundation; either version 2 of the License, or
    14  * (at your option) any later version.
    15  *
    16  * This program is distributed in the hope that it will be useful,
    17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19  * GNU General Public License for more details.
    20  */
    22 #include "display.h"
    24 static render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
    25 {
    26     return NULL;
    27 }
    29 static void video_null_destroy_render_buffer( render_buffer_t buffer )
    30 {
    31 }
    33 static gboolean video_null_set_render_target( render_buffer_t buffer )
    34 {
    35     return TRUE;
    36 }
    38 static void video_null_display_render_buffer( render_buffer_t buffer )
    39 {
    40 }
    42 static gboolean video_null_read_render_buffer( unsigned char *target, 
    43 					       render_buffer_t buffer, 
    44 					       int rowstride, int format )
    45 {
    46     return TRUE;
    47 }
    49 static void video_null_load_frame_buffer( frame_buffer_t frame, 
    50 					  render_buffer_t buffer )
    51 {
    52 }
    54 static void video_null_display_blank( uint32_t colour )
    55 {
    56 }
    59 struct display_driver display_null_driver = { "null", 
    60 					      NULL,
    61 					      NULL,
    62 					      NULL,
    63 					      NULL, 
    64 					      NULL,
    65 					      video_null_create_render_buffer,
    66 					      video_null_destroy_render_buffer,
    67 					      video_null_set_render_target,
    68 					      video_null_load_frame_buffer,
    69 					      video_null_display_render_buffer,
    70 					      video_null_display_blank,
    71 					      video_null_read_render_buffer };
.