mirror of https://github.com/encounter/SDL.git
Fixed whitespace
This commit is contained in:
parent
537f824f38
commit
4cd981609b
|
@ -1154,9 +1154,9 @@ int KMSDRM_DisplayDataInit (_THIS, SDL_DisplayData *dispdata) {
|
|||
is not valid, or if restoring the current mode fails.
|
||||
We can always count on the preferred mode! */
|
||||
for (i = 0; i < connector->count_modes; i++) {
|
||||
if (connector->modes[i].type & DRM_MODE_TYPE_PREFERRED) {
|
||||
dispdata->preferred_mode = connector->modes[i];
|
||||
}
|
||||
if (connector->modes[i].type & DRM_MODE_TYPE_PREFERRED) {
|
||||
dispdata->preferred_mode = connector->modes[i];
|
||||
}
|
||||
}
|
||||
|
||||
/* If the current CRTC's mode isn't valid, select the preferred
|
||||
|
@ -1455,8 +1455,8 @@ cleanup:
|
|||
if (ret) {
|
||||
/* Error (complete) cleanup. */
|
||||
if (windata->gs) {
|
||||
KMSDRM_gbm_surface_destroy(windata->gs);
|
||||
windata->gs = NULL;
|
||||
KMSDRM_gbm_surface_destroy(windata->gs);
|
||||
windata->gs = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1480,7 +1480,7 @@ KMSDRM_DestroyWindow(_THIS, SDL_Window *window)
|
|||
KMSDRM_DestroySurfaces(_this, window);
|
||||
#if SDL_VIDEO_OPENGL_EGL
|
||||
if (_this->egl_data) {
|
||||
SDL_EGL_UnloadLibrary(_this);
|
||||
SDL_EGL_UnloadLibrary(_this);
|
||||
}
|
||||
#endif
|
||||
if (dispdata->gbm_init) {
|
||||
|
@ -1617,15 +1617,15 @@ cleanup:
|
|||
|
||||
if (ret) {
|
||||
/* Error (complete) cleanup */
|
||||
if (dispdata->display_plane) {
|
||||
SDL_free(dispdata->display_plane);
|
||||
}
|
||||
if (dispdata->crtc) {
|
||||
SDL_free(dispdata->crtc);
|
||||
}
|
||||
if (dispdata->connector) {
|
||||
SDL_free(dispdata->connector);
|
||||
}
|
||||
if (dispdata->display_plane) {
|
||||
SDL_free(dispdata->display_plane);
|
||||
}
|
||||
if (dispdata->crtc) {
|
||||
SDL_free(dispdata->crtc);
|
||||
}
|
||||
if (dispdata->connector) {
|
||||
SDL_free(dispdata->connector);
|
||||
}
|
||||
|
||||
SDL_free(dispdata);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue