From d86a74654299f4cfac956530d9612c5ad61c9ed1 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer <sezeroz@gmail.com> Date: Fri, 9 Oct 2020 02:55:00 +0300 Subject: [PATCH] SDL_video.c: fix whitespace --- src/video/SDL_video.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 28001512e..3f89c4374 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -622,9 +622,9 @@ SDL_AddVideoDisplay(const SDL_VideoDisplay * display, SDL_bool send_event) displays[index].name = SDL_strdup(name); } - if (send_event) { - SDL_SendDisplayEvent(&_this->displays[index], SDL_DISPLAYEVENT_CONNECTED, 0); - } + if (send_event) { + SDL_SendDisplayEvent(&_this->displays[index], SDL_DISPLAYEVENT_CONNECTED, 0); + } } else { SDL_OutOfMemory(); } @@ -634,16 +634,16 @@ SDL_AddVideoDisplay(const SDL_VideoDisplay * display, SDL_bool send_event) void SDL_DelVideoDisplay(int index) { - if (index < 0 || index >= _this->num_displays) { - return; - } + if (index < 0 || index >= _this->num_displays) { + return; + } - SDL_SendDisplayEvent(&_this->displays[index], SDL_DISPLAYEVENT_DISCONNECTED, 0); + SDL_SendDisplayEvent(&_this->displays[index], SDL_DISPLAYEVENT_DISCONNECTED, 0); - if (index < (_this->num_displays - 1)) { - SDL_memmove(&_this->displays[index], &_this->displays[index+1], (_this->num_displays - index - 1)*sizeof(_this->displays[index])); - } - --_this->num_displays; + if (index < (_this->num_displays - 1)) { + SDL_memmove(&_this->displays[index], &_this->displays[index+1], (_this->num_displays - index - 1)*sizeof(_this->displays[index])); + } + --_this->num_displays; } int