mirror of https://github.com/mgba-emu/mgba.git
Qt: Add hex index to palette view
This commit is contained in:
parent
7d382e82a6
commit
c0ac5e35c0
1
CHANGES
1
CHANGES
|
@ -18,6 +18,7 @@ Other fixes:
|
|||
Misc:
|
||||
- FFmpeg: Add looping option for GIF/APNG
|
||||
- Qt: Renderer can be changed while a game is running
|
||||
- Qt: Add hex index to palette view
|
||||
|
||||
0.8.1: (2020-02-16)
|
||||
Emulation fixes:
|
||||
|
|
|
@ -120,7 +120,7 @@ void PaletteView::selectIndex(int index) {
|
|||
hexcode |= (hexcode >> 5) & 0x070707;
|
||||
m_ui.hexcode->setText(tr("#%0").arg(hexcode, 6, 16, QChar('0')));
|
||||
m_ui.value->setText(tr("0x%0").arg(color, 4, 16, QChar('0')));
|
||||
m_ui.index->setText(tr("%0").arg(index, 3, 10, QChar('0')));
|
||||
m_ui.index->setText(tr("0x%0 (%1)").arg(index, 3, 16, QChar('0')).arg(index, 3, 10, QChar('0')));
|
||||
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')));
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>443</width>
|
||||
<width>500</width>
|
||||
<height>397</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -289,7 +289,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="index">
|
||||
<property name="text">
|
||||
<string>000</string>
|
||||
<string>0x000 (000)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
|
Loading…
Reference in New Issue