[9XR-PRO] Warnings removed
This commit is contained in:
@@ -213,7 +213,7 @@ int8_t checkIncDecGen(event_t event, int8_t i_val, int8_t i_min, int8_t i_max);
|
|||||||
#define CHECK_INCDEC_GENVAR(event, var, min, max) \
|
#define CHECK_INCDEC_GENVAR(event, var, min, max) \
|
||||||
var = checkIncDecGen(event, var, min, max)
|
var = checkIncDecGen(event, var, min, max)
|
||||||
|
|
||||||
#if defined(CPUARM)
|
#if defined(PCBTARANIS)
|
||||||
#define CURSOR_ON_LINE() (menuHorizontalPosition < 0)
|
#define CURSOR_ON_LINE() (menuHorizontalPosition < 0)
|
||||||
#else
|
#else
|
||||||
#define CURSOR_ON_LINE() (0)
|
#define CURSOR_ON_LINE() (0)
|
||||||
|
|||||||
@@ -775,7 +775,7 @@ void menuModelTelemetryFrsky(event_t event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (attr && menuHorizontalPosition<0) {
|
if (attr && CURSOR_ON_LINE()) {
|
||||||
lcdDrawSolidFilledRect(TELEM_COL2-1, y-1, LCD_W-TELEM_COL2+1, FH+1);
|
lcdDrawSolidFilledRect(TELEM_COL2-1, y-1, LCD_W-TELEM_COL2+1, FH+1);
|
||||||
}
|
}
|
||||||
lcdDrawNumber(TELEM_COL2, y, -10+g_model.frsky.varioMin, ((CURSOR_ON_LINE() || menuHorizontalPosition==0) ? attr : 0)|LEFT);
|
lcdDrawNumber(TELEM_COL2, y, -10+g_model.frsky.varioMin, ((CURSOR_ON_LINE() || menuHorizontalPosition==0) ? attr : 0)|LEFT);
|
||||||
|
|||||||
@@ -92,8 +92,6 @@ inline void TELEMETRY_RESET()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool checkScreenshot(QString test);
|
|
||||||
|
|
||||||
class OpenTxTest : public testing::Test
|
class OpenTxTest : public testing::Test
|
||||||
{
|
{
|
||||||
protected: // You should make the members protected s.t. they can be
|
protected: // You should make the members protected s.t. they can be
|
||||||
|
|||||||
@@ -83,11 +83,17 @@ bool checkScreenshot(const QString & test)
|
|||||||
QImage buffer(LCD_W, LCD_H, QImage::Format_RGB32);
|
QImage buffer(LCD_W, LCD_H, QImage::Format_RGB32);
|
||||||
QPainter p(&buffer);
|
QPainter p(&buffer);
|
||||||
doPaint(p);
|
doPaint(p);
|
||||||
|
|
||||||
QString filename(QString("%1_%2x%3.png").arg(test).arg(LCD_W).arg(LCD_H));
|
QString filename(QString("%1_%2x%3.png").arg(test).arg(LCD_W).arg(LCD_H));
|
||||||
QImage reference(TESTS_PATH "/tests/" + filename);
|
QImage reference(TESTS_PATH "/tests/" + filename);
|
||||||
|
|
||||||
return buffer == reference;
|
if (buffer == reference) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
QString filename(QString("%1_%2x%3.png").arg(test).arg(LCD_W).arg(LCD_H));
|
||||||
|
buffer.save("/tmp/" + filename);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(COLORLCD)
|
#if defined(COLORLCD)
|
||||||
|
|||||||
Reference in New Issue
Block a user