mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
C++: Rename SoftwareRenderer::render_rgb565 to just render() and overload the Rgb8Pixel variant
This commit is contained in:
parent
f306e049e8
commit
5c0d88b71e
1 changed files with 2 additions and 2 deletions
|
@ -322,8 +322,8 @@ public:
|
|||
///
|
||||
/// The stride is the amount of pixels between two lines in the buffer.
|
||||
/// It is must be at least as large as the width of the window.
|
||||
PhysicalRegion render_rgb565(const Window &window, std::span<uint16_t> buffer,
|
||||
std::size_t pixel_stride) const
|
||||
PhysicalRegion render(const Window &window, std::span<uint16_t> buffer,
|
||||
std::size_t pixel_stride) const
|
||||
{
|
||||
auto r = cbindgen_private::slint_software_renderer_render_rgb565(
|
||||
inner, &window.window_handle().inner, buffer.data(), buffer.size(), pixel_stride);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue