mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
(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:
parent
84f5ab96ea
commit
a489f1275a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user