Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 545:fdcdcd8b9fd1
prev511:e02fb1af6fff
next561:533f6b478071
next586:2a3ba82cf243
author nkeynes
date Thu Nov 29 09:28:28 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Refactor GLX support and implement pbuffer rendering support
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Wed Nov 14 10:23:28 2007 +0000
1.2 +++ b/src/pvr2/pvr2.c Thu Nov 29 09:28:28 2007 +0000
1.3 @@ -90,6 +90,7 @@
1.4 static render_buffer_t render_buffers[MAX_RENDER_BUFFERS];
1.5 static int render_buffer_count = 0;
1.6 static render_buffer_t displayed_render_buffer = NULL;
1.7 +static uint32_t displayed_border_colour = 0;
1.8
1.9 /**
1.10 * Event handler for the hpos callback
1.11 @@ -140,6 +141,7 @@
1.12 }
1.13 render_buffer_count = 0;
1.14 displayed_render_buffer = NULL;
1.15 + displayed_border_colour = 0;
1.16 }
1.17
1.18 static void pvr2_reset( void )
1.19 @@ -333,6 +335,11 @@
1.20 return displayed_render_buffer;
1.21 }
1.22
1.23 +uint32_t pvr2_get_border_colour()
1.24 +{
1.25 + return displayed_border_colour;
1.26 +}
1.27 +
1.28 gboolean pvr2_save_next_scene( const gchar *filename )
1.29 {
1.30 if( pvr2_state.save_next_render_filename != NULL ) {
1.31 @@ -359,13 +366,14 @@
1.32 return; /* can't really do anything much */
1.33 } else if( !bEnabled ) {
1.34 /* Output disabled == black */
1.35 + displayed_render_buffer = NULL;
1.36 + displayed_border_colour = 0;
1.37 display_driver->display_blank( 0 );
1.38 - displayed_render_buffer = NULL;
1.39 } else if( MMIO_READ( PVR2, DISP_CFG2 ) & 0x08 ) {
1.40 /* Enabled but blanked - border colour */
1.41 - uint32_t colour = MMIO_READ( PVR2, DISP_BORDER );
1.42 - display_driver->display_blank( colour );
1.43 + displayed_border_colour = MMIO_READ( PVR2, DISP_BORDER );
1.44 displayed_render_buffer = NULL;
1.45 + display_driver->display_blank( displayed_border_colour );
1.46 } else {
1.47 /* Real output - determine dimensions etc */
1.48 struct frame_buffer fbuf;
.