diff options
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r-- | apps/plugins/lua/rocklib_img.c | 7 | ||||
-rw-r--r-- | apps/plugins/lua/rocklib_img.h | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/apps/plugins/lua/rocklib_img.c b/apps/plugins/lua/rocklib_img.c index 7b3ed9d2d7..1266d60310 100644 --- a/apps/plugins/lua/rocklib_img.c +++ b/apps/plugins/lua/rocklib_img.c | |||
@@ -1331,10 +1331,8 @@ static inline struct viewport* opt_viewport(lua_State *L, | |||
1331 | vp->y = check_tablevalue(L, "y", narg); | 1331 | vp->y = check_tablevalue(L, "y", narg); |
1332 | vp->width = check_tablevalue(L, "width", narg); | 1332 | vp->width = check_tablevalue(L, "width", narg); |
1333 | vp->height = check_tablevalue(L, "height", narg); | 1333 | vp->height = check_tablevalue(L, "height", narg); |
1334 | #ifdef HAVE_LCD_BITMAP | ||
1335 | vp->font = check_tablevalue(L, "font", narg); | 1334 | vp->font = check_tablevalue(L, "font", narg); |
1336 | vp->drawmode = check_tablevalue(L, "drawmode", narg); | 1335 | vp->drawmode = check_tablevalue(L, "drawmode", narg); |
1337 | #endif | ||
1338 | #if LCD_DEPTH > 1 | 1336 | #if LCD_DEPTH > 1 |
1339 | vp->fg_pattern = (unsigned int) check_tablevalue(L, "fg_pattern", narg); | 1337 | vp->fg_pattern = (unsigned int) check_tablevalue(L, "fg_pattern", narg); |
1340 | vp->bg_pattern = (unsigned int) check_tablevalue(L, "bg_pattern", narg); | 1338 | vp->bg_pattern = (unsigned int) check_tablevalue(L, "bg_pattern", narg); |
@@ -1379,7 +1377,6 @@ RB_WRAP(font_getstringsize) | |||
1379 | return 3; | 1377 | return 3; |
1380 | } | 1378 | } |
1381 | 1379 | ||
1382 | #ifdef HAVE_LCD_BITMAP | ||
1383 | RB_WRAP(lcd_framebuffer) | 1380 | RB_WRAP(lcd_framebuffer) |
1384 | { | 1381 | { |
1385 | rli_wrap(L, rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT); | 1382 | rli_wrap(L, rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT); |
@@ -1620,8 +1617,6 @@ RB_WRAP(lcd_drawpixel) | |||
1620 | return 0; | 1617 | return 0; |
1621 | } | 1618 | } |
1622 | 1619 | ||
1623 | #endif /* defined(LCD_BITMAP) */ | ||
1624 | |||
1625 | #ifdef HAVE_LCD_COLOR | 1620 | #ifdef HAVE_LCD_COLOR |
1626 | RB_WRAP(lcd_rgbpack) | 1621 | RB_WRAP(lcd_rgbpack) |
1627 | { | 1622 | { |
@@ -1690,7 +1685,6 @@ static const luaL_Reg rocklib_img[] = | |||
1690 | R(set_viewport), | 1685 | R(set_viewport), |
1691 | R(clear_viewport), | 1686 | R(clear_viewport), |
1692 | R(font_getstringsize), | 1687 | R(font_getstringsize), |
1693 | #ifdef HAVE_LCD_BITMAP | ||
1694 | R(lcd_framebuffer), | 1688 | R(lcd_framebuffer), |
1695 | R(lcd_setfont), | 1689 | R(lcd_setfont), |
1696 | R(gui_scrollbar_draw), | 1690 | R(gui_scrollbar_draw), |
@@ -1721,7 +1715,6 @@ static const luaL_Reg rocklib_img[] = | |||
1721 | R(lcd_vline), | 1715 | R(lcd_vline), |
1722 | R(lcd_drawpixel), | 1716 | R(lcd_drawpixel), |
1723 | 1717 | ||
1724 | #endif /*HAVE_LCD_BITMAP*/ | ||
1725 | #ifdef HAVE_LCD_COLOR | 1718 | #ifdef HAVE_LCD_COLOR |
1726 | R(lcd_rgbpack), | 1719 | R(lcd_rgbpack), |
1727 | R(lcd_rgbunpack), | 1720 | R(lcd_rgbunpack), |
diff --git a/apps/plugins/lua/rocklib_img.h b/apps/plugins/lua/rocklib_img.h index 496bc8dd93..90b24f1ad1 100644 --- a/apps/plugins/lua/rocklib_img.h +++ b/apps/plugins/lua/rocklib_img.h | |||
@@ -22,9 +22,7 @@ | |||
22 | #ifndef _ROCKLIB_IMG_H_ | 22 | #ifndef _ROCKLIB_IMG_H_ |
23 | #define _ROCKLIB_IMG_H_ | 23 | #define _ROCKLIB_IMG_H_ |
24 | 24 | ||
25 | #ifdef HAVE_LCD_BITMAP | ||
26 | #define RLI_EXTENDED | 25 | #define RLI_EXTENDED |
27 | #endif | ||
28 | 26 | ||
29 | LUALIB_API int (luaopen_rock_img) (lua_State *L); | 27 | LUALIB_API int (luaopen_rock_img) (lua_State *L); |
30 | 28 | ||