mirror of https://github.com/encounter/SDL.git
Wayland: changed a few "SetError(); return -1;" to "return SetError()".
This commit is contained in:
parent
b620df3ea7
commit
9a686aaa56
|
@ -356,8 +356,7 @@ Wayland_WarpMouseGlobal(int x, int y)
|
||||||
static int
|
static int
|
||||||
Wayland_SetRelativeMouseMode(SDL_bool enabled)
|
Wayland_SetRelativeMouseMode(SDL_bool enabled)
|
||||||
{
|
{
|
||||||
SDL_Unsupported();
|
return SDL_Unsupported();
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -324,8 +324,7 @@ Wayland_GetDisplayModes(_THIS, SDL_VideoDisplay *sdl_display)
|
||||||
static int
|
static int
|
||||||
Wayland_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
|
Wayland_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
|
||||||
{
|
{
|
||||||
SDL_SetError("SetDisplayMode not (yet?) supported on Wayland.");
|
return SDL_Unsupported();
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -186,8 +186,7 @@ int Wayland_CreateWindow(_THIS, SDL_Window *window)
|
||||||
data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->egl_window);
|
data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->egl_window);
|
||||||
|
|
||||||
if (data->egl_surface == EGL_NO_SURFACE) {
|
if (data->egl_surface == EGL_NO_SURFACE) {
|
||||||
SDL_SetError("failed to create a window surface");
|
return SDL_SetError("failed to create a window surface");;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data->shell_surface) {
|
if (data->shell_surface) {
|
||||||
|
|
Loading…
Reference in New Issue