slide: formatting code

Origin commit data
------------------
Branch: ni/coolstream
Commit: f0b25f4e22
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-11-23 (Wed, 23 Nov 2022)

Origin message was:
------------------
- slide: formatting code

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-11-23 23:54:02 +01:00
parent 44f6c8602d
commit 9376d620a9
2 changed files with 12 additions and 13 deletions

View File

@@ -143,7 +143,7 @@ bool COSDSlider::SlideDone()
{ {
bool ret = false; bool ret = false;
if (slideOut) // disappear if (slideOut) // disappear
{ {
slideValue += STEPSIZE; slideValue += STEPSIZE;
@@ -156,7 +156,7 @@ bool COSDSlider::SlideDone()
else else
setValue(slideValue); setValue(slideValue);
} }
else // appears else // appear
{ {
slideValue -= STEPSIZE; slideValue -= STEPSIZE;
@@ -171,8 +171,5 @@ bool COSDSlider::SlideDone()
setValue(slideValue); setValue(slideValue);
} }
return ret; return ret;
} }

View File

@@ -27,14 +27,14 @@
class COSDSlider class COSDSlider
{ {
private: private:
uint32_t slideTimer; uint32_t slideTimer;
int slideValue; int slideValue;
bool slideIn; bool slideIn;
bool slideOut; bool slideOut;
int proc_put(const char *path, char *value, int len); int proc_put(const char *path, char *value, int len);
void setValue(int val); void setValue(int val);
int slideMax; int slideMax;
int slideMode; int slideMode;
public: public:
COSDSlider(int percent = 100, int mode = BOTTOM2TOP); COSDSlider(int percent = 100, int mode = BOTTOM2TOP);
@@ -46,6 +46,7 @@ class COSDSlider
bool SlideDone(); bool SlideDone();
bool SlideInDone() { return !slideIn && !slideOut; }; bool SlideInDone() { return !slideIn && !slideOut; };
uint32_t GetSlideTimer() { return slideTimer; }; uint32_t GetSlideTimer() { return slideTimer; };
enum enum
{ {
BEFORE_SLIDEIN = 1, BEFORE_SLIDEIN = 1,
@@ -53,6 +54,7 @@ class COSDSlider
BEFORE_SLIDEOUT = 3, BEFORE_SLIDEOUT = 3,
AFTER_SLIDEOUT = 4 AFTER_SLIDEOUT = 4
}; };
enum enum
{ {
MID2SIDE, MID2SIDE,