Custom OpenTX types moved to separate file opentx_types.h, fixes linker problem with lcdDrawBitmapPattern() in release build (#4188)

This commit is contained in:
Damjan Adamic
2017-01-02 11:29:20 +01:00
committed by Bertrand Songis
parent 2a0a75a178
commit afe3d4a1e9
4 changed files with 45 additions and 15 deletions
+1 -1
View File
@@ -23,6 +23,7 @@
#include <list>
#include "widgets_container.h"
#include "lcd.h"
#define MAX_LAYOUT_ZONES 10
#define MAX_LAYOUT_OPTIONS 10
@@ -86,7 +87,6 @@ class BaseLayoutFactory: public LayoutFactory
virtual void drawThumb(uint16_t x, uint16_t y, uint32_t flags) const
{
extern void lcdDrawBitmapPattern(int x, int y, const uint8_t * bitmap, uint32_t flags, int width=0, int offset=0);
lcdDrawBitmapPattern(x, y, bitmap, flags);
}
+1
View File
@@ -22,6 +22,7 @@
#define _LCD_H_
#include "bitmapbuffer.h"
#include "opentx_types.h"
#if LCD_W >= 480
#define LCD_COLS 40