[uwac] fix compiler warnings
This commit is contained in:
parent
3ca781075f
commit
6289482283
@ -140,7 +140,8 @@ static void xdg_handle_toplevel_configure(void* data, struct xdg_toplevel* xdg_t
|
|||||||
window->width = width;
|
window->width = width;
|
||||||
window->stride = width * bppFromShmFormat(window->format);
|
window->stride = width * bppFromShmFormat(window->format);
|
||||||
window->height = height;
|
window->height = height;
|
||||||
ret = UwacWindowShmAllocBuffers(window, UWAC_INITIAL_BUFFERS, window->stride * height,
|
ret =
|
||||||
|
UwacWindowShmAllocBuffers(window, UWAC_INITIAL_BUFFERS, 1ull * window->stride * height,
|
||||||
width, height, window->format);
|
width, height, window->format);
|
||||||
|
|
||||||
if (ret != UWAC_SUCCESS)
|
if (ret != UWAC_SUCCESS)
|
||||||
@ -229,7 +230,8 @@ static void ivi_handle_configure(void* data, struct ivi_surface* surface, int32_
|
|||||||
window->width = width;
|
window->width = width;
|
||||||
window->stride = width * bppFromShmFormat(window->format);
|
window->stride = width * bppFromShmFormat(window->format);
|
||||||
window->height = height;
|
window->height = height;
|
||||||
ret = UwacWindowShmAllocBuffers(window, UWAC_INITIAL_BUFFERS, window->stride * height,
|
ret =
|
||||||
|
UwacWindowShmAllocBuffers(window, UWAC_INITIAL_BUFFERS, 1ull * window->stride * height,
|
||||||
width, height, window->format);
|
width, height, window->format);
|
||||||
|
|
||||||
if (ret != UWAC_SUCCESS)
|
if (ret != UWAC_SUCCESS)
|
||||||
@ -287,7 +289,8 @@ static void shell_configure(void* data, struct wl_shell_surface* surface, uint32
|
|||||||
window->width = width;
|
window->width = width;
|
||||||
window->stride = width * bppFromShmFormat(window->format);
|
window->stride = width * bppFromShmFormat(window->format);
|
||||||
window->height = height;
|
window->height = height;
|
||||||
ret = UwacWindowShmAllocBuffers(window, UWAC_INITIAL_BUFFERS, window->stride * height,
|
ret =
|
||||||
|
UwacWindowShmAllocBuffers(window, UWAC_INITIAL_BUFFERS, 1ull * window->stride * height,
|
||||||
width, height, window->format);
|
width, height, window->format);
|
||||||
|
|
||||||
if (ret != UWAC_SUCCESS)
|
if (ret != UWAC_SUCCESS)
|
||||||
@ -412,7 +415,8 @@ static UwacBuffer* UwacWindowFindFreeBuffer(UwacWindow* w, ssize_t* index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = UwacWindowShmAllocBuffers(w, 2, w->stride * w->height, w->width, w->height, w->format);
|
ret = UwacWindowShmAllocBuffers(w, 2, 1ull * w->stride * w->height, w->width, w->height,
|
||||||
|
w->format);
|
||||||
|
|
||||||
if (ret != UWAC_SUCCESS)
|
if (ret != UWAC_SUCCESS)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user