Cosmetics

This commit is contained in:
3djc
2021-04-06 08:45:01 +02:00
parent 179b86635c
commit 680a716219
2 changed files with 3 additions and 2 deletions
@@ -19,6 +19,7 @@
*/ */
#include "opentx.h" #include "opentx.h"
#include <memory>
class ModelBitmapWidget: public Widget class ModelBitmapWidget: public Widget
{ {
+2 -2
View File
@@ -79,12 +79,12 @@ class OutputsWidget: public Widget
void twoColumns(BitmapBuffer * dc) void twoColumns(BitmapBuffer * dc)
{ {
uint8_t endColumn = drawChannels(dc, 0, 0, width() / 2, height(), uint8_t endColumn = drawChannels(dc, 0, 0, (width() / 2) - 1, height(),
persistentData->options[0].value.unsignedValue, persistentData->options[0].value.unsignedValue,
persistentData->options[1].value.boolValue, persistentData->options[1].value.boolValue,
persistentData->options[2].value.unsignedValue); persistentData->options[2].value.unsignedValue);
drawChannels(dc, width() / 2 + 2, 0, width() / 2, height(), endColumn + 1, drawChannels(dc, width() / 2, 0, (width() / 2) - 1, height(), endColumn + 1,
persistentData->options[1].value.boolValue, persistentData->options[1].value.boolValue,
persistentData->options[2].value.unsignedValue); persistentData->options[2].value.unsignedValue);
} }