mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
GekkoSyntaxHighlight: Collapse cases for builtin color formats
Same behavior, but without as much duplication.
This commit is contained in:
parent
e4fa5614d1
commit
100242a380
@ -221,17 +221,9 @@ void GekkoSyntaxHighlight::HighlightSubstr(int start, int len, HighlightFormat f
|
||||
hl_format.setForeground(IMM_COLOR[m_theme_idx]);
|
||||
break;
|
||||
case HighlightFormat::GPR:
|
||||
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
|
||||
break;
|
||||
case HighlightFormat::FPR:
|
||||
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
|
||||
break;
|
||||
case HighlightFormat::SPR:
|
||||
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
|
||||
break;
|
||||
case HighlightFormat::CRField:
|
||||
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
|
||||
break;
|
||||
case HighlightFormat::CRFlag:
|
||||
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user