mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
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:
@@ -181,14 +181,16 @@ int CColorChooser::exec(CMenuTarget* parent, const std::string &)
|
|||||||
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
|
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
|
||||||
|
|
||||||
bool loop = true;
|
bool loop = true;
|
||||||
while (loop) {
|
while (loop)
|
||||||
|
{
|
||||||
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd, true);
|
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd, true);
|
||||||
|
|
||||||
if (msg <= CRCInput::RC_MaxRC)
|
if (msg <= CRCInput::RC_MaxRC)
|
||||||
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
|
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU]);
|
||||||
|
|
||||||
int val = (*value[selected]);
|
int val = (*value[selected]);
|
||||||
switch ( msg ) {
|
switch (msg)
|
||||||
|
{
|
||||||
case CRCInput::RC_down:
|
case CRCInput::RC_down:
|
||||||
{
|
{
|
||||||
if (selected < ((value[VALUE_A]) ? 3 : 2))
|
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))
|
(ShowMsg(name, LOCALE_MESSAGEBOX_DISCARD, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbCancel) == CMsgBox::mbrCancel))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// sonst abbruch...
|
|
||||||
*value[VALUE_R] = r_alt;
|
*value[VALUE_R] = r_alt;
|
||||||
*value[VALUE_G] = g_alt;
|
*value[VALUE_G] = g_alt;
|
||||||
*value[VALUE_B] = b_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.enableShadow(CC_SHADOW_RIGHT | CC_SHADOW_CORNER_TOP_RIGHT | CC_SHADOW_CORNER_BOTTOM_RIGHT);
|
||||||
header.paint(CC_SAVE_SCREEN_NO);
|
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);
|
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++)
|
for (int i = 0; i < VALUES; i++)
|
||||||
|
@@ -29,7 +29,8 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
VALUE_R = 0, // red
|
VALUE_R = 0, // red
|
||||||
VALUE_G = 1, // green
|
VALUE_G = 1, // green
|
||||||
VALUE_B = 2, // blue
|
VALUE_B = 2, // blue
|
||||||
|
Reference in New Issue
Block a user