(Ozone) Casting to unsigned caused an integer overflow and after float

promotion would lead to 'x' being a garbage value, leading to problems
when this value was passed to vkCmdSetViewport. This stops Vulkan
validation layers from complaining about it
This commit is contained in:
twinaphex 2021-08-14 02:20:56 +02:00
parent 84f5ab96ea
commit a489f1275a

View File

@ -624,7 +624,7 @@ border_iterate:
userdata,
video_width,
video_height,
(unsigned) ozone->dimensions_sidebar_width
ozone->dimensions_sidebar_width
+ x_offset + entry_padding + ozone->dimensions.spacer_3px,
entry_width - ozone->dimensions.spacer_5px,
button_height + ozone->dimensions.spacer_1px,
@ -832,7 +832,7 @@ border_iterate:
ozone->dimensions.entry_icon_size,
ozone->dimensions.entry_icon_size,
texture,
(unsigned)ozone->dimensions_sidebar_width
ozone->dimensions_sidebar_width
+ x_offset + entry_padding
+ ozone->dimensions.entry_icon_padding,
y + scroll_y + ozone->dimensions.entry_height