colorchooser: formatting code using astyle

Origin commit data
------------------
Branch: ni/coolstream
Commit: 67bccaf947
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-25 (Thu, 25 Nov 2021)

Origin message was:
------------------
- colorchooser: formatting code using astyle

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-11-25 21:47:09 +01:00
parent 552797a4d9
commit b72e066ca2
2 changed files with 48 additions and 47 deletions

View File

@@ -181,14 +181,16 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &)
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
bool loop = true;
while (loop) {
while (loop)
{
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd, true);
if (msg <= CRCInput::RC_MaxRC)
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
int val = (*value[selected]);
switch ( msg ) {
switch (msg)
{
case CRCInput::RC_down:
{
if (selected < ((value[VALUE_A]) ? 3 : 2))
@@ -258,7 +260,6 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &)
(ShowMsg(name, LOCALE_MESSAGEBOX_DISCARD, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbCancel) == CMsgBox::mbrCancel))
break;
// sonst abbruch...
*value[VALUE_R] = r_alt;
*value[VALUE_G] = g_alt;
*value[VALUE_B] = b_alt;
@@ -307,7 +308,6 @@ void CColorChooser::paint()
header.enableShadow(CC_SHADOW_RIGHT | CC_SHADOW_CORNER_TOP_RIGHT | CC_SHADOW_CORNER_BOTTOM_RIGHT);
header.paint(CC_SAVE_SCREEN_NO);
PaintBoxRel(x, y + header_height, width, height - header_height, COL_MENUCONTENT_PLUS_0, RADIUS_NONE, CORNER_NONE, CC_SHADOW_RIGHT | CC_SHADOW_CORNER_TOP_RIGHT | CC_SHADOW_CORNER_BOTTOM_RIGHT);
for (int i = 0; i < VALUES; i++)

View File

@@ -29,7 +29,8 @@
#include <string>
enum {
enum
{
VALUE_R = 0, // red
VALUE_G = 1, // green
VALUE_B = 2, // blue