|  | @@ -6712,7 +6712,8 @@ static void la_RecordWacomMotions(XIRawEvent *event)
 | 
											
												
													
														|  |          else { MAIN.EraserOrientation=orientation;MAIN.EraserDeviation=deviation; }
 |  |          else { MAIN.EraserOrientation=orientation;MAIN.EraserDeviation=deviation; }
 | 
											
												
													
														|  |      }else{ MAIN.StylusDeviation=MAIN.StylusOrientation=MAIN.EraserDeviation=MAIN.EraserOrientation=0; }
 |  |      }else{ MAIN.StylusDeviation=MAIN.StylusOrientation=MAIN.EraserDeviation=MAIN.EraserOrientation=0; }
 | 
											
												
													
														|  |      if(XIMaskIsSet(event->valuators.mask, 5)){
 |  |      if(XIMaskIsSet(event->valuators.mask, 5)){
 | 
											
												
													
														|  | -        real angle=valuator[5]; angle=(900-angle)/10*2; MAIN.StylusTwist=angle; 
 |  | 
 | 
											
												
													
														|  | 
 |  | +        real angle=valuator[5]; angle=rad((900-angle)/10*2-180); if(angle<0) angle+=TNS_PI*2; MAIN.StylusTwist=angle; 
 | 
											
												
													
														|  | 
 |  | +        printf("a %lf\n",angle);
 | 
											
												
													
														|  |      }else{ MAIN.StylusTwist=0; }
 |  |      }else{ MAIN.StylusTwist=0; }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      MAIN.IsPen=1;
 |  |      MAIN.IsPen=1;
 |