Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 106:9048bac046c3
prev103:9b9cfc5855e0
next107:e576dd36073a
author nkeynes
date Tue Mar 14 12:45:53 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Move driver selection out to main at long last. Add video NULL driver for
headless operation
Make dcload exit() actually exit
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Mon Mar 13 12:39:07 2006 +0000
1.2 +++ b/src/pvr2/pvr2.c Tue Mar 14 12:45:53 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.17 2006-03-13 12:39:07 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.18 2006-03-14 12:45:53 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core MMIO registers.
1.9 *
1.10 @@ -61,8 +61,17 @@
1.11 register_io_region( &mmio_region_PVR2PAL );
1.12 register_io_region( &mmio_region_PVR2TA );
1.13 video_base = mem_get_region_by_name( MEM_REGION_VIDEO );
1.14 - video_driver = &video_gtk_driver;
1.15 - video_driver->set_display_format( 640, 480, COLFMT_RGB32 );
1.16 +}
1.17 +
1.18 +void video_set_driver( video_driver_t driver )
1.19 +{
1.20 + if( video_driver != NULL && video_driver->shutdown_driver != NULL )
1.21 + video_driver->shutdown_driver();
1.22 +
1.23 + video_driver = driver;
1.24 + if( driver->init_driver != NULL )
1.25 + driver->init_driver();
1.26 + driver->set_display_format( 640, 480, COLFMT_RGB32 );
1.27 }
1.28
1.29 uint32_t pvr2_line_count = 0;
.