all repos — mgba @ 12ae8ba9491b8428711cbbde50f8cc5719007cfa

mGBA Game Boy Advance Emulator

Qt: Fix build on Qt < 5.10
Vicki Pfau vi@endrift.com
Sun, 23 Feb 2020 18:10:16 -0800
commit

12ae8ba9491b8428711cbbde50f8cc5719007cfa

parent

75fa9a80fa51e116f6104cf7f9dd1598f365e66c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/CoreController.cppsrc/platform/qt/CoreController.cpp

@@ -695,7 +695,7 @@ size = image.sizeInBytes();

#else size = image.byteCount(); #endif - m_eReaderData.setRawData(reinterpret_cast<const char*>(bits), image.sizeInBytes()); + m_eReaderData.setRawData(reinterpret_cast<const char*>(bits), size); } mCoreThreadRunFunction(&m_threadContext, [](mCoreThread* thread) {