Made the Splash editor respect the 9x/Taranis LCD widths in a consistent way. Previously everything was displayed as a Taranis bitmap.

Pictures larger than 9x width will get scaled to Taranis width (212 pix).
This commit is contained in:
Kjell Kernen
2014-02-11 18:08:54 +01:00
parent 9caa0f1e3b
commit 48af7aefd0
2 changed files with 19 additions and 3 deletions
+7
View File
@@ -10,7 +10,13 @@ namespace Ui
class customizeSplashDialog;
}
const int WIDTH_TARANIS = 212;
const int HEIGHT_TARANIS = 64;
const int WIDTH_9X = 128;
const int HEIGHT_9X = 64;
enum Source {FW, PICT, PROFILE, UNDEFINED};
enum LCDFormat {LCD9X, LCDTARANIS};
class Side
{
@@ -31,6 +37,7 @@ public:
private:
Source *source;
LCDFormat *format;
};
class customizeSplashDialog : public QDialog