mirror of https://github.com/encounter/SDL.git
SDL_video.c: fix whitespace
This commit is contained in:
parent
3aa418f451
commit
d86a746542
|
@ -622,9 +622,9 @@ SDL_AddVideoDisplay(const SDL_VideoDisplay * display, SDL_bool send_event)
|
||||||
displays[index].name = SDL_strdup(name);
|
displays[index].name = SDL_strdup(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (send_event) {
|
if (send_event) {
|
||||||
SDL_SendDisplayEvent(&_this->displays[index], SDL_DISPLAYEVENT_CONNECTED, 0);
|
SDL_SendDisplayEvent(&_this->displays[index], SDL_DISPLAYEVENT_CONNECTED, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
SDL_OutOfMemory();
|
SDL_OutOfMemory();
|
||||||
}
|
}
|
||||||
|
@ -634,16 +634,16 @@ SDL_AddVideoDisplay(const SDL_VideoDisplay * display, SDL_bool send_event)
|
||||||
void
|
void
|
||||||
SDL_DelVideoDisplay(int index)
|
SDL_DelVideoDisplay(int index)
|
||||||
{
|
{
|
||||||
if (index < 0 || index >= _this->num_displays) {
|
if (index < 0 || index >= _this->num_displays) {
|
||||||
return;
|
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)) {
|
if (index < (_this->num_displays - 1)) {
|
||||||
SDL_memmove(&_this->displays[index], &_this->displays[index+1], (_this->num_displays - index - 1)*sizeof(_this->displays[index]));
|
SDL_memmove(&_this->displays[index], &_this->displays[index+1], (_this->num_displays - index - 1)*sizeof(_this->displays[index]));
|
||||||
}
|
}
|
||||||
--_this->num_displays;
|
--_this->num_displays;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue