From 7f359157724df04c65cc6c8d5061e1c9b4d6e003 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 3 May 2018 21:44:37 +1000 Subject: [PATCH] build: rename limit to clamp --- tools/hello.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hello.cpp b/tools/hello.cpp index 2d862b6..2ddb57a 100644 --- a/tools/hello.cpp +++ b/tools/hello.cpp @@ -425,12 +425,12 @@ main (void) VkSurfaceFormatKHR surface_format { VK_FORMAT_B8G8R8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; VkPresentModeKHR present_mode = VK_PRESENT_MODE_FIFO_KHR; VkExtent2D present_extent { - .width = util::limit ( + .width = util::clamp ( unsigned (resolution.w), surface_capabilities.minImageExtent.width, surface_capabilities.maxImageExtent.width ), - .height = util::limit ( + .height = util::clamp ( unsigned (resolution.h), surface_capabilities.minImageExtent.height, surface_capabilities.maxImageExtent.height