Increment accuaracy in drawtime calculation
This way is a bit more accurate.
This commit is contained in:
		
				
					committed by
					
						
						Roberto E. Vargas Caballero
					
				
			
			
				
	
			
			
			
						parent
						
							c27c731b9f
						
					
				
				
					commit
					6dc2b546ec
				
			
							
								
								
									
										2
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								st.c
									
									
									
									
									
								
							@@ -3992,7 +3992,7 @@ run(void) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		clock_gettime(CLOCK_MONOTONIC, &now);
 | 
							clock_gettime(CLOCK_MONOTONIC, &now);
 | 
				
			||||||
		drawtimeout.tv_sec = 0;
 | 
							drawtimeout.tv_sec = 0;
 | 
				
			||||||
		drawtimeout.tv_nsec = (1000/xfps) * 1E6;
 | 
							drawtimeout.tv_nsec =  (1000 * 1E6)/ xfps;
 | 
				
			||||||
		tv = &drawtimeout;
 | 
							tv = &drawtimeout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		dodraw = 0;
 | 
							dodraw = 0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user