summaryrefslogtreecommitdiffstats
path: root/apps/plugins/cube.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-17 10:31:31 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit658026e6267277b27d297c481728f74d160a8481 (patch)
tree915a9d2bb48469bdd5b9127dc19a61f230721a6c /apps/plugins/cube.c
parent8cb555460ff79e636a7907fb2589e16db98c8600 (diff)
downloadrockbox-658026e6267277b27d297c481728f74d160a8481.tar.gz
rockbox-658026e6267277b27d297c481728f74d160a8481.tar.bz2
rockbox-658026e6267277b27d297c481728f74d160a8481.zip
[4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice.
Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a
Diffstat (limited to 'apps/plugins/cube.c')
-rw-r--r--apps/plugins/cube.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 29d2ba2fc1..d2d831f81b 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -451,9 +451,6 @@
#endif
#endif
-
-#ifdef HAVE_LCD_BITMAP
-
#define DIST (10 * MIN(LCD_HEIGHT, LCD_WIDTH) / 16)
static int x_off = LCD_WIDTH/2;
static int y_off = LCD_HEIGHT/2;
@@ -486,16 +483,6 @@ static struct my_lcd *mylcd = &greyfuncs;
#define ASPECT 256 /* = 1.00 */
#endif
-#else /* !LCD_BITMAP */
-
-#define MYLCD(fn) pgfx_ ## fn
-#define DIST 9
-static int x_off = 10;
-static int y_off = 7;
-#define ASPECT 300 /* = 1.175 */
-
-#endif /* !LCD_BITMAP */
-
struct point_3D {
long x, y, z;
};
@@ -771,7 +758,6 @@ enum plugin_status plugin_start(const void* parameter)
(void)(parameter);
-#ifdef HAVE_LCD_BITMAP
#if defined(USEGSLIB)
gbuf = (unsigned char *)rb->plugin_get_buffer(&gbuf_size);
if (!grey_init(gbuf, gbuf_size, GREY_BUFFERED,
@@ -794,7 +780,6 @@ enum plugin_status plugin_start(const void* parameter)
grey_setfont(FONT_SYSFIXED);
#endif
rb->lcd_setfont(FONT_SYSFIXED);
-#endif
atexit(cleanup);
while(!quit)
@@ -808,7 +793,6 @@ enum plugin_status plugin_start(const void* parameter)
redraw = false;
}
-#ifdef HAVE_LCD_BITMAP
if (t_disp > 0)
{
char buffer[30];
@@ -821,24 +805,6 @@ enum plugin_status plugin_start(const void* parameter)
if (t_disp == 0)
redraw = true;
}
-#else
- if (t_disp > 0)
- {
- if (t_disp == DISP_TIME)
- {
- rb->lcd_puts(5, 0, axes[curr].label);
- rb->lcd_putsf(5, 1, "%d %c",
- paused ? axes[curr].angle : axes[curr].speed,
- highspeed ? 'H' : ' ');
- }
- t_disp--;
- if (t_disp == 0)
- {
- rb->lcd_clear_display();
- pgfx_display(0, 0);
- }
- }
-#endif
#ifdef USEGSLIB
if (mode_switch)
{