src/video/SDL_video.c
changeset 10746 95c57a177719
parent 10737 3406a0f8b041
child 10781 7c19d6525105
equal deleted inserted replaced
10745:7461fcef6ae2 10746:95c57a177719
  3795     window->hit_test_data = userdata;
  3795     window->hit_test_data = userdata;
  3796 
  3796 
  3797     return 0;
  3797     return 0;
  3798 }
  3798 }
  3799 
  3799 
  3800 float SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
  3800 float
       
  3801 SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
  3801 {
  3802 {
  3802 	float den2 = hinches * hinches + vinches * vinches;
  3803 	float den2 = hinches * hinches + vinches * vinches;
  3803 	if (den2 <= 0.0f) {
  3804 	if (den2 <= 0.0f) {
  3804 		return 0.0f;
  3805 		return 0.0f;
  3805 	}
  3806 	}