C++: Rename SoftwareRenderer::render_rgb565 to just render() and overload the Rgb8Pixel variant

This commit is contained in:
Simon Hausmann 2023-07-24 14:22:42 +02:00
parent f306e049e8
commit 5c0d88b71e

View file

@ -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);