filename | src/pvr2/pvr2.c |
changeset | 27:1ef09a52cd1e |
prev | 23:1ec3acd0594d |
next | 30:89b30313d757 |
author | nkeynes |
date | Sun Dec 25 01:28:39 2005 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Refactor all the GUI bits out of the main directory (except for a couple lingering temporarily in loader.c Fix a few timeslice issues |
file | annotate | diff | log | raw |
1.1 --- a/src/pvr2/pvr2.c Fri Dec 23 11:44:55 2005 +00001.2 +++ b/src/pvr2/pvr2.c Sun Dec 25 01:28:39 2005 +00001.3 @@ -10,7 +10,7 @@1.4 char *video_base;1.6 void pvr2_init( void );1.7 -void pvr2_run_slice( int );1.8 +int pvr2_run_slice( int );1.9 void pvr2_next_frame( void );1.11 struct dreamcast_module pvr2_module = { "PVR2", pvr2_init, NULL, NULL,1.12 @@ -26,13 +26,14 @@1.13 uint32_t pvr2_time_counter = 0;1.14 uint32_t pvr2_time_per_frame = 20000;1.16 -void pvr2_run_slice( int microsecs )1.17 +int pvr2_run_slice( int microsecs )1.18 {1.19 pvr2_time_counter += microsecs;1.20 if( pvr2_time_counter >= pvr2_time_per_frame ) {1.21 pvr2_next_frame();1.22 pvr2_time_counter -= pvr2_time_per_frame;1.23 }1.24 + return microsecs;1.25 }1.27 uint32_t vid_stride, vid_lpf, vid_ppl, vid_hres, vid_vres, vid_col;
.