cellCamera: fix qt camera handler format

This commit is contained in:
Megamouse 2021-10-19 19:18:19 +02:00
parent 9a6285942b
commit 67ba381dfe
7 changed files with 16 additions and 15 deletions

View file

@ -181,10 +181,10 @@ void qt_camera_handler::stop_camera()
m_camera->stop();
}
void qt_camera_handler::set_format(s32 format, u32 bytes_per_pixel)
void qt_camera_handler::set_format(s32 format, u32 bytesize)
{
m_format = format;
m_bytes_per_pixel = bytes_per_pixel;
m_bytesize = bytesize;
update_camera_settings();
}
@ -299,7 +299,7 @@ void qt_camera_handler::update_camera_settings()
if (m_surface)
{
m_surface->set_resolution(m_width, m_height);
m_surface->set_format(m_format, m_bytes_per_pixel);
m_surface->set_format(m_format, m_bytesize);
m_surface->set_mirrored(m_mirrored);
}
}