From 2a442c7677ba0c2ed6743fb3ac1aeecc0cced8bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Mon, 2 Apr 2018 07:12:36 +0200 Subject: [PATCH] use unsigned int in both width and height for surface creation --- .gitignore | 2 ++ include/vkvg.h | 2 +- src/vkvg_surface.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f0bb5fa..d76a516 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ build/ *.user +src/shaders.h +ignore diff --git a/include/vkvg.h b/include/vkvg.h index 89e64a9..da2a016 100644 --- a/include/vkvg.h +++ b/include/vkvg.h @@ -20,7 +20,7 @@ VkvgDevice vkvg_device_create (VkDevice vkdev, VkQueue queue, uint32_t qFam, VkPhysicalDeviceMemoryProperties memprops); void vkvg_device_destroy (VkvgDevice dev); -VkvgSurface vkvg_surface_create (VkvgDevice dev, int32_t width, uint32_t height); +VkvgSurface vkvg_surface_create (VkvgDevice dev, uint32_t width, uint32_t height); void vkvg_surface_destroy (VkvgSurface surf); VkImage vkvg_surface_get_vk_image (VkvgSurface surf); VkImage vkvg_surface_get_vkh_image (VkvgSurface surf); diff --git a/src/vkvg_surface.c b/src/vkvg_surface.c index da5afbe..46f3f3f 100644 --- a/src/vkvg_surface.c +++ b/src/vkvg_surface.c @@ -27,7 +27,7 @@ void _clear_stencil (VkvgSurface surf) vkh_cmd_submit (dev->queue, &cmd, dev->fence); } -VkvgSurface vkvg_surface_create(VkvgDevice dev, int32_t width, uint32_t height){ +VkvgSurface vkvg_surface_create(VkvgDevice dev, uint32_t width, uint32_t height){ VkvgSurface surf = (vkvg_surface*)calloc(1,sizeof(vkvg_surface)); surf->dev = dev; -- 2.47.3