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 424:421d68e78c46
prev352:f0df7a6d4703
next429:e581b90c3fb3
author nkeynes
date Sun Oct 07 05:42:25 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
nkeynes@106
     1
/**
nkeynes@424
     2
 * $Id: video_null.c,v 1.4 2007-10-07 05:42:25 nkeynes Exp $
nkeynes@106
     3
 *
nkeynes@106
     4
 * Null video output driver (ie no video output whatsoever)
nkeynes@106
     5
 *
nkeynes@106
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@106
     7
 *
nkeynes@106
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@106
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@106
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@106
    11
 * (at your option) any later version.
nkeynes@106
    12
 *
nkeynes@106
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@106
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@106
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@106
    16
 * GNU General Public License for more details.
nkeynes@106
    17
 */
nkeynes@106
    18
nkeynes@144
    19
#include "display.h"
nkeynes@106
    20
nkeynes@352
    21
render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
nkeynes@352
    22
{
nkeynes@352
    23
    return NULL;
nkeynes@352
    24
}
nkeynes@352
    25
nkeynes@352
    26
void video_null_destroy_render_buffer( render_buffer_t buffer )
nkeynes@106
    27
{
nkeynes@106
    28
}
nkeynes@106
    29
nkeynes@352
    30
gboolean video_null_set_render_target( render_buffer_t buffer )
nkeynes@106
    31
{
nkeynes@106
    32
    return TRUE;
nkeynes@106
    33
}
nkeynes@106
    34
nkeynes@352
    35
gboolean video_null_display_render_buffer( render_buffer_t buffer )
nkeynes@106
    36
{
nkeynes@106
    37
    return TRUE;
nkeynes@106
    38
}
nkeynes@106
    39
nkeynes@352
    40
gboolean video_null_read_render_buffer( render_buffer_t buffer, char *target )
nkeynes@352
    41
{
nkeynes@352
    42
    return TRUE;
nkeynes@352
    43
}
nkeynes@352
    44
nkeynes@352
    45
gboolean video_null_display_frame_buffer( frame_buffer_t buffer )
nkeynes@352
    46
{
nkeynes@352
    47
    return TRUE;
nkeynes@352
    48
}
nkeynes@352
    49
nkeynes@352
    50
gboolean video_null_display_blank( uint32_t colour )
nkeynes@106
    51
{
nkeynes@106
    52
    return TRUE;
nkeynes@106
    53
}
nkeynes@106
    54
nkeynes@106
    55
void video_null_display_back_buffer( void )
nkeynes@106
    56
{
nkeynes@106
    57
}
nkeynes@106
    58
nkeynes@106
    59
nkeynes@144
    60
struct display_driver display_null_driver = { "null", 
nkeynes@352
    61
					      NULL,
nkeynes@352
    62
					      NULL,
nkeynes@352
    63
					      NULL,
nkeynes@352
    64
					      video_null_create_render_buffer,
nkeynes@352
    65
					      video_null_destroy_render_buffer,
nkeynes@352
    66
					      video_null_set_render_target,
nkeynes@424
    67
					      video_null_display_frame_buffer,
nkeynes@352
    68
					      video_null_display_render_buffer,
nkeynes@352
    69
					      video_null_display_blank,
nkeynes@352
    70
					      video_null_read_render_buffer };
.