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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/lib/bmp.c b/apps/plugins/lib/bmp.c
index a8ebbffc27..b3e0e2b948 100644
--- a/apps/plugins/lib/bmp.c
+++ b/apps/plugins/lib/bmp.c
@@ -8,6 +8,7 @@
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2006 by Antoine Cellerier <dionoea -at- videolan -dot- org> 10 * Copyright (C) 2006 by Antoine Cellerier <dionoea -at- videolan -dot- org>
11 * Copyright (C) 2009 by Andrew Mahone
11 * 12 *
12 * This program is free software; you can redistribute it and/or 13 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License 14 * modify it under the terms of the GNU General Public License
@@ -26,6 +27,7 @@
26#include "lcd.h" 27#include "lcd.h"
27#include "system.h" 28#include "system.h"
28 29
30#if LCD_DEPTH > 1
29#ifdef HAVE_LCD_COLOR 31#ifdef HAVE_LCD_COLOR
30#define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff 32#define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff
31#define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff 33#define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff
@@ -119,3 +121,16 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst)
119 yr += yrstep; 121 yr += yrstep;
120 } 122 }
121} 123}
124
125#else
126#include "wrappers.h"
127
128static const struct plugin_api *rb;
129
130#include "../../recorder/bmp.c"
131
132void bmp_init(const struct plugin_api *api)
133{
134 rb = api;
135}
136#endif