mirror of https://github.com/stella-emu/stella.git
Some fixes for suggestions from cppcheck.
This commit is contained in:
parent
511fbb3644
commit
4fecd8fc97
|
@ -77,8 +77,7 @@ void PaletteHandler::cyclePalette(int direction)
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
bool PaletteHandler::isCustomAdjustable() const
|
||||
{
|
||||
return myCurrentAdjustable >= CUSTOM_START
|
||||
&& myCurrentAdjustable <= CUSTOM_END;
|
||||
return myCurrentAdjustable <= CUSTOM_END;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -39,7 +39,7 @@ class PaletteHandler
|
|||
static constexpr float DEF_RGB_SHIFT = 0.0F;
|
||||
static constexpr float MAX_RGB_SHIFT = 22.5F;
|
||||
|
||||
enum Adjustables {
|
||||
enum Adjustables : uInt32 {
|
||||
PHASE_SHIFT,
|
||||
RED_SCALE,
|
||||
GREEN_SCALE,
|
||||
|
|
|
@ -211,7 +211,7 @@ Bankswitch::Sizes = {{
|
|||
{ 8_KB, 8_KB+5 }, // _WDSW
|
||||
{ 64_KB, 64_KB }, // _X07
|
||||
#if defined(CUSTOM_ARM)
|
||||
{ Bankswitch::any_KB, Bankswitch::any_KB } }
|
||||
{ Bankswitch::any_KB, Bankswitch::any_KB }
|
||||
#endif
|
||||
}};
|
||||
#endif // GUI_SUPPORT
|
||||
|
|
Loading…
Reference in New Issue