Search
lxdream.org :: lxdream/src/drivers/video_null.c :: diff
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 (14 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)
file annotate diff log raw
1.1 --- a/src/drivers/video_null.c Mon Jan 28 02:38:09 2008 +0000
1.2 +++ b/src/drivers/video_null.c Mon May 12 10:00:13 2008 +0000
1.3 @@ -21,40 +21,37 @@
1.4
1.5 #include "display.h"
1.6
1.7 -render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
1.8 +static render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
1.9 {
1.10 return NULL;
1.11 }
1.12
1.13 -void video_null_destroy_render_buffer( render_buffer_t buffer )
1.14 +static void video_null_destroy_render_buffer( render_buffer_t buffer )
1.15 {
1.16 }
1.17
1.18 -gboolean video_null_set_render_target( render_buffer_t buffer )
1.19 +static gboolean video_null_set_render_target( render_buffer_t buffer )
1.20 {
1.21 return TRUE;
1.22 }
1.23
1.24 -gboolean video_null_display_render_buffer( render_buffer_t buffer )
1.25 +static void video_null_display_render_buffer( render_buffer_t buffer )
1.26 +{
1.27 +}
1.28 +
1.29 +static gboolean video_null_read_render_buffer( unsigned char *target,
1.30 + render_buffer_t buffer,
1.31 + int rowstride, int format )
1.32 {
1.33 return TRUE;
1.34 }
1.35
1.36 -gboolean video_null_read_render_buffer( unsigned char *target, render_buffer_t buffer, int rowstride, int format )
1.37 -{
1.38 - return TRUE;
1.39 -}
1.40 -
1.41 -void video_null_load_frame_buffer( frame_buffer_t frame, render_buffer_t buffer )
1.42 +static void video_null_load_frame_buffer( frame_buffer_t frame,
1.43 + render_buffer_t buffer )
1.44 {
1.45 }
1.46
1.47 -gboolean video_null_display_blank( uint32_t colour )
1.48 -{
1.49 - return TRUE;
1.50 -}
1.51 -
1.52 -void video_null_display_back_buffer( void )
1.53 +static void video_null_display_blank( uint32_t colour )
1.54 {
1.55 }
1.56
.