Revert "kdrive: fix "set but not used" warnings"
Partial revert of commit 4149ee8ec0, better
fix coming up.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
			
			
This commit is contained in:
		
							parent
							
								
									ac4c2abe98
								
							
						
					
					
						commit
						808c87bff7
					
				|  | @ -465,6 +465,16 @@ fbdevRandRSetConfig(ScreenPtr pScreen, | ||||||
|     int oldheight; |     int oldheight; | ||||||
|     int oldmmwidth; |     int oldmmwidth; | ||||||
|     int oldmmheight; |     int oldmmheight; | ||||||
|  |     int newwidth, newheight; | ||||||
|  | 
 | ||||||
|  |     if (screen->randr & (RR_Rotate_0 | RR_Rotate_180)) { | ||||||
|  |         newwidth = pSize->width; | ||||||
|  |         newheight = pSize->height; | ||||||
|  |     } | ||||||
|  |     else { | ||||||
|  |         newwidth = pSize->height; | ||||||
|  |         newheight = pSize->width; | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     if (wasEnabled) |     if (wasEnabled) | ||||||
|         KdDisableScreen(pScreen); |         KdDisableScreen(pScreen); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue