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
This commit is contained in:
parent
7ec0c9d3e7
commit
5bdac4875c
1 changed files with 6 additions and 1 deletions
|
@ -366,8 +366,13 @@ void cal_initial (void)
|
|||
rb->lcd_drawline(X_1_POS+i*REC_WIDTH, Y_1_POS,
|
||||
X_1_POS+i*REC_WIDTH, Y_6_POS);
|
||||
|
||||
/* draw buttons */
|
||||
#ifdef CALCULATOR_OPERATORS
|
||||
/* basic operators are available through separate button */
|
||||
buttonGroup = sciButtons;
|
||||
#else
|
||||
buttonGroup = basicButtons;
|
||||
#endif
|
||||
/* draw buttons */
|
||||
for (i = 0; i < 5; i++){
|
||||
for (j = 0; j < 5; j++){
|
||||
rb->lcd_getstringsize( buttonChar[buttonGroup][i][j],&w,&h);
|
||||
|
|
Loading…
Reference in a new issue