summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/bmp.c')
-rw-r--r--apps/plugins/lib/bmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lib/bmp.c b/apps/plugins/lib/bmp.c
index 03bdc73783..20adc6de86 100644
--- a/apps/plugins/lib/bmp.c
+++ b/apps/plugins/lib/bmp.c
@@ -24,6 +24,7 @@
24#include "lcd.h" 24#include "lcd.h"
25#include "system.h" 25#include "system.h"
26 26
27#ifdef HAVE_LCD_COLOR
27#define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff 28#define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff
28#define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff 29#define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff
29/** 30/**
@@ -82,6 +83,7 @@ int save_bmp_file( char* filename, struct bitmap *bm, struct plugin_api* rb )
82 rb->close( fh ); 83 rb->close( fh );
83 return 1; 84 return 1;
84} 85}
86#endif
85 87
86/** 88/**
87 Very simple image scale from src to dst (nearest neighbour). 89 Very simple image scale from src to dst (nearest neighbour).