mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
fix code
This commit is contained in:
parent
382cc13650
commit
0b75e90c54
@ -54,19 +54,20 @@ void ImageResampler::processImage(const uint8_t * data, int width, int height, i
|
|||||||
int xDestStart, xDestEnd;
|
int xDestStart, xDestEnd;
|
||||||
int yDestStart, yDestEnd;
|
int yDestStart, yDestEnd;
|
||||||
|
|
||||||
if (bottomUp)
|
FlipMode flipMode = _flipMode;
|
||||||
|
if (_bottomUp)
|
||||||
{
|
{
|
||||||
if (_flipMode == FlipMode::NO_CHANGE)
|
if (_flipMode == FlipMode::NO_CHANGE)
|
||||||
_flipMode = FlipMode::HORIZONTAL;
|
flipMode = FlipMode::HORIZONTAL;
|
||||||
else if (_flipMode == FlipMode::HORIZONTAL)
|
else if (_flipMode == FlipMode::HORIZONTAL)
|
||||||
_flipMode = FlipMode::NO_CHANGE;
|
flipMode = FlipMode::NO_CHANGE;
|
||||||
else if (_flipMode == FlipMode::VERTICAL)
|
else if (_flipMode == FlipMode::VERTICAL)
|
||||||
_flipMode = FlipMode::BOTH;
|
flipMode = FlipMode::BOTH;
|
||||||
else if (_flipMode == FlipMode::BOTH)
|
else if (_flipMode == FlipMode::BOTH)
|
||||||
_flipMode = FlipMode::VERTICAL;
|
flipMode = FlipMode::VERTICAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (_flipMode)
|
switch (flipMode)
|
||||||
{
|
{
|
||||||
case FlipMode::NO_CHANGE:
|
case FlipMode::NO_CHANGE:
|
||||||
xDestStart = 0;
|
xDestStart = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user