fix red coloring of fp regs in registerview
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1964 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8cdbaa2714
commit
e6d78d3447
|
@ -93,13 +93,25 @@ wxGridCellAttr *CRegTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKind)
|
||||||
|
|
||||||
attr->SetBackgroundColour(wxColour(wxT("#FFFFFF")));
|
attr->SetBackgroundColour(wxColour(wxT("#FFFFFF")));
|
||||||
attr->SetFont(DefaultFont);
|
attr->SetFont(DefaultFont);
|
||||||
attr->SetAlignment(col & 1 ? wxALIGN_CENTER : wxALIGN_LEFT, wxALIGN_CENTER);
|
|
||||||
|
|
||||||
if (col == 0)
|
switch (col) {
|
||||||
attr->SetTextColour(wxColour(wxT("#000000")));
|
case 1:
|
||||||
else
|
case 3:
|
||||||
attr->SetTextColour(m_CachedRegHasChanged[row] ? wxColor(wxT("#FF0000")) : wxColor(wxT("#000000")));
|
case 4:
|
||||||
|
attr->SetAlignment(wxALIGN_CENTER, wxALIGN_CENTER);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
attr->SetAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool red = false;
|
||||||
|
switch (col) {
|
||||||
|
case 1: red = row < 32 ? m_CachedRegHasChanged[row] : m_CachedSpecialRegHasChanged[row-32]; break;
|
||||||
|
case 3:
|
||||||
|
case 4: red = row < 32 ? m_CachedFRegHasChanged[row][col-3] : false; break;
|
||||||
|
}
|
||||||
|
attr->SetTextColour(red ? wxColor(wxT("#FF0000")) : wxColor(wxT("#000000")));
|
||||||
attr->IncRef();
|
attr->IncRef();
|
||||||
return attr;
|
return attr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue