Fixed tabs to spaces
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 5a456c9..60b2147 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -722,21 +722,21 @@ int SDL_GetDisplayUsableBounds(int displayIndex, SDL_Rect * rect)
int
SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi)
{
- SDL_VideoDisplay *display;
+ SDL_VideoDisplay *display;
CHECK_DISPLAY_INDEX(displayIndex, -1);
display = &_this->displays[displayIndex];
- if (_this->GetDisplayDPI) {
- if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
- return 0;
- }
+ if (_this->GetDisplayDPI) {
+ if (_this->GetDisplayDPI(_this, display, ddpi, hdpi, vdpi) == 0) {
+ return 0;
+ }
} else {
return SDL_Unsupported();
}
- return -1;
+ return -1;
}
SDL_bool
@@ -1394,7 +1394,7 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
if (flags & SDL_WINDOW_VULKAN) {
if (!_this->Vulkan_CreateSurface) {
SDL_SetError("Vulkan support is either not configured in SDL "
- "or not available in video driver");
+ "or not available in video driver");
return NULL;
}
if (flags & SDL_WINDOW_OPENGL) {
@@ -2093,13 +2093,13 @@ SDL_HideWindow(SDL_Window * window)
return;
}
- window->is_hiding = SDL_TRUE;
+ window->is_hiding = SDL_TRUE;
SDL_UpdateFullscreenMode(window, SDL_FALSE);
if (_this->HideWindow) {
_this->HideWindow(_this, window);
}
- window->is_hiding = SDL_FALSE;
+ window->is_hiding = SDL_FALSE;
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_HIDDEN, 0, 0);
}
@@ -2944,8 +2944,8 @@ SDL_GL_DeduceMaxSupportedESProfile(int* major, int* minor)
/* THIS REQUIRES AN EXISTING GL CONTEXT THAT HAS BEEN MADE CURRENT. */
/* Please refer to https://bugzilla.libsdl.org/show_bug.cgi?id=3725 for discussion. */
#if SDL_VIDEO_OPENGL || SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
- /* XXX This is fragile; it will break in the event of release of
- * new versions of OpenGL ES.
+ /* XXX This is fragile; it will break in the event of release of
+ * new versions of OpenGL ES.
*/
if (SDL_GL_ExtensionSupported("GL_ARB_ES3_2_compatibility")) {
*major = 3;
@@ -3910,13 +3910,13 @@ SDL_SetWindowHitTest(SDL_Window * window, SDL_HitTest callback, void *userdata)
float
SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
{
- float den2 = hinches * hinches + vinches * vinches;
- if (den2 <= 0.0f) {
- return 0.0f;
- }
-
- return (float)(SDL_sqrt((double)hpix * (double)hpix + (double)vpix * (double)vpix) /
- SDL_sqrt((double)den2));
+ float den2 = hinches * hinches + vinches * vinches;
+ if (den2 <= 0.0f) {
+ return 0.0f;
+ }
+
+ return (float)(SDL_sqrt((double)hpix * (double)hpix + (double)vpix * (double)vpix) /
+ SDL_sqrt((double)den2));
}
/*