mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 05:56:24 +08:00
Fix build (C90 declaration order)
(cherry picked from commit 88bdc028ec)
This commit is contained in:
committed by
Sam Lantinga
parent
d849036927
commit
24269007d8
@@ -380,12 +380,11 @@ static int create_buffer_from_shm(Wayland_CursorData *d,
|
|||||||
SDL_VideoDevice *vd = SDL_GetVideoDevice();
|
SDL_VideoDevice *vd = SDL_GetVideoDevice();
|
||||||
SDL_VideoData *data = (SDL_VideoData *)vd->driverdata;
|
SDL_VideoData *data = (SDL_VideoData *)vd->driverdata;
|
||||||
struct wl_shm_pool *shm_pool;
|
struct wl_shm_pool *shm_pool;
|
||||||
|
int shm_fd;
|
||||||
|
|
||||||
int stride = width * 4;
|
int stride = width * 4;
|
||||||
d->shm_data_size = stride * height;
|
d->shm_data_size = stride * height;
|
||||||
|
|
||||||
int shm_fd;
|
|
||||||
|
|
||||||
shm_fd = wayland_create_tmp_file(d->shm_data_size);
|
shm_fd = wayland_create_tmp_file(d->shm_data_size);
|
||||||
if (shm_fd < 0) {
|
if (shm_fd < 0) {
|
||||||
return SDL_SetError("Creating mouse cursor buffer failed.");
|
return SDL_SetError("Creating mouse cursor buffer failed.");
|
||||||
|
|||||||
Reference in New Issue
Block a user