Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 677:3ee62740ff8f
prev674:377d987db8f2
next728:4dfc293b9d96
author nkeynes
date Thu May 29 10:50:25 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Remove pvr2mmio.h include from pvr2.h (it's supposed to be moore or less private)
Move redraw function from driver into pvr2_redraw_display()
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Mon May 26 10:42:18 2008 +0000
1.2 +++ b/src/pvr2/pvr2.c Thu May 29 10:50:25 2008 +0000
1.3 @@ -25,6 +25,7 @@
1.4 #include "asic.h"
1.5 #include "clock.h"
1.6 #include "pvr2/pvr2.h"
1.7 +#include "pvr2/pvr2mmio.h"
1.8 #include "pvr2/scene.h"
1.9 #include "sh4/sh4.h"
1.10 #define MMIO_IMPL
1.11 @@ -339,14 +340,15 @@
1.12 return pvr2_state.frame_count;
1.13 }
1.14
1.15 -render_buffer_t pvr2_get_front_buffer()
1.16 +void pvr2_redraw_display()
1.17 {
1.18 - return displayed_render_buffer;
1.19 -}
1.20 -
1.21 -uint32_t pvr2_get_border_colour()
1.22 -{
1.23 - return displayed_border_colour;
1.24 + if( display_driver != NULL ) {
1.25 + if( displayed_render_buffer == NULL ) {
1.26 + display_driver->display_blank(displayed_border_colour);
1.27 + } else {
1.28 + display_driver->display_render_buffer(displayed_render_buffer);
1.29 + }
1.30 + }
1.31 }
1.32
1.33 gboolean pvr2_save_next_scene( const gchar *filename )
.