Sliders no longer lag the mouse cursor, and the delay stops when you release one mouse button or click the other.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@455 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									94e26e5764
								
							
						
					
					
						commit
						159d623f44
					
				
							
								
								
									
										12
									
								
								divers.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								divers.c
									
									
									
									
									
								
							@ -841,11 +841,13 @@ void Rotate_180_deg_LOWLEVEL(void)
 | 
			
		||||
void Tempo_jauge(byte Vitesse)
 | 
			
		||||
//Boucle d'attente pour faire bouger les scrollbars à une vitesse correcte
 | 
			
		||||
{
 | 
			
		||||
        while (Vitesse!=0)
 | 
			
		||||
        {
 | 
			
		||||
            Wait_VBL();
 | 
			
		||||
            Vitesse--;
 | 
			
		||||
        }
 | 
			
		||||
  Uint32 Fin;
 | 
			
		||||
  byte MouseK_Original = Mouse_K;
 | 
			
		||||
  Fin = SDL_GetTicks() + Vitesse*10;
 | 
			
		||||
  do
 | 
			
		||||
  {
 | 
			
		||||
    if (!Get_input()) Wait_VBL();
 | 
			
		||||
  } while (Mouse_K == MouseK_Original && SDL_GetTicks()<Fin);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Scroll_picture(short Decalage_X,short Decalage_Y)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user