summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-01-02 09:20:24 +0000
committerJens Arnold <amiconn@rockbox.org>2005-01-02 09:20:24 +0000
commit5bdac4875c8d72f2780c8812d07c6e168112af78 (patch)
tree5119e38a048989b0f4a19631c05afd868170c2af /apps/plugins
parent7ec0c9d3e71a67364c9509ddf3bcfa7b3ea13f7c (diff)
downloadrockbox-5bdac4875c8d72f2780c8812d07c6e168112af78.tar.gz
rockbox-5bdac4875c8d72f2780c8812d07c6e168112af78.zip
Start with the basic button layout if the basic operators are not available separately (Ondio keypad)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5525 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/calculator.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c
index 5e8c31aa0f..04231f471e 100644
--- a/apps/plugins/calculator.c
+++ b/apps/plugins/calculator.c
@@ -366,8 +366,13 @@ void cal_initial (void)
366 rb->lcd_drawline(X_1_POS+i*REC_WIDTH, Y_1_POS, 366 rb->lcd_drawline(X_1_POS+i*REC_WIDTH, Y_1_POS,
367 X_1_POS+i*REC_WIDTH, Y_6_POS); 367 X_1_POS+i*REC_WIDTH, Y_6_POS);
368 368
369 /* draw buttons */ 369#ifdef CALCULATOR_OPERATORS
370 /* basic operators are available through separate button */
370 buttonGroup = sciButtons; 371 buttonGroup = sciButtons;
372#else
373 buttonGroup = basicButtons;
374#endif
375 /* draw buttons */
371 for (i = 0; i < 5; i++){ 376 for (i = 0; i < 5; i++){
372 for (j = 0; j < 5; j++){ 377 for (j = 0; j < 5; j++){
373 rb->lcd_getstringsize( buttonChar[buttonGroup][i][j],&w,&h); 378 rb->lcd_getstringsize( buttonChar[buttonGroup][i][j],&w,&h);