Merge video0/affine fixes from master
This commit is contained in:
		
							parent
							
								
									9a48e3a231
								
							
						
					
					
						commit
						75a302d1d2
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		
							
								
								
									
										3
									
								
								video.cc
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								video.cc
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1911,10 +1911,13 @@ void update_scanline(void)
 | 
			
		|||
      render_scanline_window<false>(screen_offset);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Mode 0 does not use any affine params at all.
 | 
			
		||||
  if (video_mode) {
 | 
			
		||||
    affine_reference_x[0] += (s16)read_ioreg(REG_BG2PB);
 | 
			
		||||
    affine_reference_y[0] += (s16)read_ioreg(REG_BG2PD);
 | 
			
		||||
    affine_reference_x[1] += (s16)read_ioreg(REG_BG3PB);
 | 
			
		||||
    affine_reference_y[1] += (s16)read_ioreg(REG_BG3PD);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue