all repos — mgba @ 178348d44588f6454908e360c874119ee73d79e1

mGBA Game Boy Advance Emulator

Qt: Scale pixel color values to full range (fixes #1511)
Vicki Pfau vi@endrift.com
Wed, 28 Aug 2019 20:55:11 -0700
commit

178348d44588f6454908e360c874119ee73d79e1

parent

11fcc89f793db3fe74b1ef950d6c4af1e69d09e1

2 files changed, 4 insertions(+), 3 deletions(-)

jump to
M CHANGESCHANGES

@@ -81,6 +81,7 @@ - Core: Create game-related paths if they don't exist (fixes mgba.io/i/1446)

- Qt: Add option to pause on minimizing window (closes mgba.io/i/1379) - Switch: Support file associations - Qt: Show error message if file failed to load + - Qt: Scale pixel color values to full range (fixes mgba.io/i/1511) 0.7.2: (2019-05-25) Emulation fixes:
M src/platform/qt/AssetTile.cppsrc/platform/qt/AssetTile.cpp

@@ -134,9 +134,9 @@ color_t color = data[index];

m_ui.color->setColor(0, color); m_ui.color->update(); - uint32_t r = color & 0xF8; - uint32_t g = (color >> 8) & 0xF8; - uint32_t b = (color >> 16) & 0xF8; + uint32_t r = M_R8(color); + uint32_t g = M_G8(color); + uint32_t b = M_B8(color); m_ui.r->setText(tr("0x%0 (%1)").arg(r, 2, 16, QChar('0')).arg(r, 2, 10, QChar('0'))); m_ui.g->setText(tr("0x%0 (%1)").arg(g, 2, 16, QChar('0')).arg(g, 2, 10, QChar('0'))); m_ui.b->setText(tr("0x%0 (%1)").arg(b, 2, 16, QChar('0')).arg(b, 2, 10, QChar('0')));