Issue with layout 2x1
This commit is contained in:
@@ -45,7 +45,7 @@ class Layout2x1: public Layout
|
|||||||
|
|
||||||
virtual unsigned int getZonesCount() const
|
virtual unsigned int getZonesCount() const
|
||||||
{
|
{
|
||||||
return 4;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual Zone getZone(unsigned int index) const
|
virtual Zone getZone(unsigned int index) const
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ bool menuWidgetsSetup(event_t event)
|
|||||||
|
|
||||||
currentScreen->refresh();
|
currentScreen->refresh();
|
||||||
|
|
||||||
for (int i=currentContainer->getZonesCount()-1; i>=0; i--) {
|
for (int i = currentContainer->getZonesCount() - 1; i >= 0; i--) {
|
||||||
Zone zone = currentContainer->getZone(i);
|
Zone zone = currentContainer->getZone(i);
|
||||||
LcdFlags color;
|
LcdFlags color;
|
||||||
int padding, thickness;
|
int padding, thickness;
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
|
|
||||||
void drawStringWithIndex(coord_t x, coord_t y, const char * str, int idx, LcdFlags flags, const char * prefix, const char * suffix)
|
void drawStringWithIndex(coord_t x, coord_t y, const char * str, int idx, LcdFlags flags, const char * prefix, const char * suffix)
|
||||||
|
|||||||
Reference in New Issue
Block a user