Fixed tabs to spaces
authorSam Lantinga <slouken@libsdl.org>
Sun, 10 Sep 2017 12:40:45 -0700
changeset 11490c7cc4401ab96
parent 11489 438be648de4c
child 11491 3c9983546738
Fixed tabs to spaces
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Sun Sep 10 10:43:04 2017 -0700
     1.2 +++ b/src/video/SDL_video.c	Sun Sep 10 12:40:45 2017 -0700
     1.3 @@ -722,21 +722,21 @@
     1.4  int
     1.5  SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi)
     1.6  {
     1.7 -	SDL_VideoDisplay *display;
     1.8 +    SDL_VideoDisplay *display;
     1.9  
    1.10      CHECK_DISPLAY_INDEX(displayIndex, -1);
    1.11  
    1.12      display = &_this->displays[displayIndex];
    1.13  
    1.14 -	if (_this->GetDisplayDPI) {
    1.15 -		if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
    1.16 -			return 0;
    1.17 -		}
    1.18 +    if (_this->GetDisplayDPI) {
    1.19 +        if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
    1.20 +            return 0;
    1.21 +        }
    1.22      } else {
    1.23          return SDL_Unsupported();
    1.24      }
    1.25  
    1.26 -	return -1;
    1.27 +    return -1;
    1.28  }
    1.29  
    1.30  SDL_bool
    1.31 @@ -1394,7 +1394,7 @@
    1.32      if (flags & SDL_WINDOW_VULKAN) {
    1.33          if (!_this->Vulkan_CreateSurface) {
    1.34              SDL_SetError("Vulkan support is either not configured in SDL "
    1.35 -            		     "or not available in video driver");
    1.36 +                         "or not available in video driver");
    1.37              return NULL;
    1.38          }
    1.39          if (flags & SDL_WINDOW_OPENGL) {
    1.40 @@ -2093,13 +2093,13 @@
    1.41          return;
    1.42      }
    1.43  
    1.44 -	window->is_hiding = SDL_TRUE;
    1.45 +    window->is_hiding = SDL_TRUE;
    1.46      SDL_UpdateFullscreenMode(window, SDL_FALSE);
    1.47  
    1.48      if (_this->HideWindow) {
    1.49          _this->HideWindow(_this, window);
    1.50      }
    1.51 -	window->is_hiding = SDL_FALSE;
    1.52 +    window->is_hiding = SDL_FALSE;
    1.53      SDL_SendWindowEvent(window, SDL_WINDOWEVENT_HIDDEN, 0, 0);
    1.54  }
    1.55  
    1.56 @@ -2944,8 +2944,8 @@
    1.57  /* THIS REQUIRES AN EXISTING GL CONTEXT THAT HAS BEEN MADE CURRENT. */
    1.58  /*  Please refer to https://bugzilla.libsdl.org/show_bug.cgi?id=3725 for discussion. */
    1.59  #if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
    1.60 -	/* XXX This is fragile; it will break in the event of release of
    1.61 -	 * new versions of OpenGL ES.
    1.62 +    /* XXX This is fragile; it will break in the event of release of
    1.63 +     * new versions of OpenGL ES.
    1.64       */
    1.65      if (SDL_GL_ExtensionSupported("GL_ARB_ES3_2_compatibility")) {
    1.66          *major = 3;
    1.67 @@ -3910,13 +3910,13 @@
    1.68  float
    1.69  SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
    1.70  {
    1.71 -	float den2 = hinches * hinches + vinches * vinches;
    1.72 -	if (den2 <= 0.0f) {
    1.73 -		return 0.0f;
    1.74 -	}
    1.75 -		
    1.76 -	return (float)(SDL_sqrt((double)hpix * (double)hpix + (double)vpix * (double)vpix) /
    1.77 -				   SDL_sqrt((double)den2));
    1.78 +    float den2 = hinches * hinches + vinches * vinches;
    1.79 +    if (den2 <= 0.0f) {
    1.80 +        return 0.0f;
    1.81 +    }
    1.82 +
    1.83 +    return (float)(SDL_sqrt((double)hpix * (double)hpix + (double)vpix * (double)vpix) /
    1.84 +                   SDL_sqrt((double)den2));
    1.85  }
    1.86  
    1.87  /*