diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/cube.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c index 57003a0eb8..d37eb41c09 100644 --- a/apps/plugins/cube.c +++ b/apps/plugins/cube.c | |||
@@ -84,12 +84,12 @@ PLUGIN_HEADER | |||
84 | 84 | ||
85 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) | 85 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) |
86 | #define CUBE_QUIT BUTTON_MENU | 86 | #define CUBE_QUIT BUTTON_MENU |
87 | #define CUBE_X_INC BUTTON_LEFT | 87 | #define CUBE_X_INC BUTTON_RIGHT |
88 | #define CUBE_X_DEC BUTTON_RIGHT | 88 | #define CUBE_X_DEC BUTTON_LEFT |
89 | #define CUBE_Y_INC BUTTON_SCROLL_FWD | 89 | #define CUBE_Y_INC BUTTON_SCROLL_FWD |
90 | #define CUBE_Y_DEC BUTTON_SCROLL_BACK | 90 | #define CUBE_Y_DEC BUTTON_SCROLL_BACK |
91 | #define CUBE_Z_INC (BUTTON_SELECT | BUTTON_LEFT) | 91 | #define CUBE_Z_INC (BUTTON_SELECT | BUTTON_RIGHT) |
92 | #define CUBE_Z_DEC (BUTTON_SELECT | BUTTON_RIGHT) | 92 | #define CUBE_Z_DEC (BUTTON_SELECT | BUTTON_LEFT) |
93 | #define CUBE_MODE (BUTTON_SELECT | BUTTON_MENU) | 93 | #define CUBE_MODE (BUTTON_SELECT | BUTTON_MENU) |
94 | #define CUBE_PAUSE_PRE BUTTON_PLAY | 94 | #define CUBE_PAUSE_PRE BUTTON_PLAY |
95 | #define CUBE_PAUSE (BUTTON_PLAY | BUTTON_REL) | 95 | #define CUBE_PAUSE (BUTTON_PLAY | BUTTON_REL) |
@@ -370,10 +370,10 @@ static void cube_rotate(int xa, int ya, int za) | |||
370 | { | 370 | { |
371 | point3D[i].x = matrice[0][0] * sommet[i].x + matrice[1][0] * sommet[i].y | 371 | point3D[i].x = matrice[0][0] * sommet[i].x + matrice[1][0] * sommet[i].y |
372 | + matrice[2][0] * sommet[i].z; | 372 | + matrice[2][0] * sommet[i].z; |
373 | 373 | ||
374 | point3D[i].y = matrice[0][1] * sommet[i].x + matrice[1][1] * sommet[i].y | 374 | point3D[i].y = matrice[0][1] * sommet[i].x + matrice[1][1] * sommet[i].y |
375 | + matrice[2][1] * sommet[i].z; | 375 | + matrice[2][1] * sommet[i].z; |
376 | 376 | ||
377 | point3D[i].z = matrice[0][2] * sommet[i].x + matrice[1][2] * sommet[i].y | 377 | point3D[i].z = matrice[0][2] * sommet[i].x + matrice[1][2] * sommet[i].y |
378 | + matrice[2][2] * sommet[i].z; | 378 | + matrice[2][2] * sommet[i].z; |
379 | } | 379 | } |
@@ -465,7 +465,7 @@ static void cube_draw(void) | |||
465 | } | 465 | } |
466 | } | 466 | } |
467 | break; | 467 | break; |
468 | 468 | ||
469 | case WIREFRAME: | 469 | case WIREFRAME: |
470 | 470 | ||
471 | for (i = 0; i < 12; i++) | 471 | for (i = 0; i < 12; i++) |
@@ -666,7 +666,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
666 | { | 666 | { |
667 | if (ys < 10) | 667 | if (ys < 10) |
668 | ys++; | 668 | ys++; |
669 | } | 669 | } |
670 | else | 670 | else |
671 | { | 671 | { |
672 | ya++; | 672 | ya++; |