mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
ba09f35474
# Objective - Fixes #11219 ## Solution - Scaling calculations use texture dimensions instead of layout dimensions. ## Testing - Did you test these changes? If so, how? All UI examples look fine. - How can other people (reviewers) test your changes? Is there anything specific they need to know? Example in #11219 ## Migration Guide ```diff let ui_node = ExtractedUiNode { stack_index, transform, color, rect, image, - atlas_size: Some(atlas_size * scale_factor), + atlas_scaling: Some(Vec2::splat(scale_factor)), clip, flip_x, flip_y, camera_entity, border, border_radius, node_type, }, ``` ```diff let computed_slices = ComputedTextureSlices { slices, - image_size, } ``` |
||
---|---|---|
.. | ||
borders.rs | ||
button.rs | ||
display_and_visibility.rs | ||
flex_layout.rs | ||
font_atlas_debug.rs | ||
grid.rs | ||
overflow.rs | ||
overflow_debug.rs | ||
relative_cursor_position.rs | ||
render_ui_to_texture.rs | ||
size_constraints.rs | ||
text.rs | ||
text_debug.rs | ||
text_wrap_debug.rs | ||
transparency_ui.rs | ||
ui.rs | ||
ui_material.rs | ||
ui_scaling.rs | ||
ui_texture_atlas.rs | ||
ui_texture_atlas_slice.rs | ||
ui_texture_slice.rs | ||
viewport_debug.rs | ||
window_fallthrough.rs | ||
z_index.rs |