Skip to content

Commit

Permalink
Some adjustments on cattie.c
Browse files Browse the repository at this point in the history
  • Loading branch information
repiazza committed Mar 11, 2024
1 parent ba2c449 commit 7b80c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef _MENU_H
#define _MENU_H

#define MAX_MENU_OPTIONS 7
#define MAX_MENU_OPTIONS 6

enum eMenuOption{
MENU_OPT_1 = 0,
Expand Down
12 changes: 4 additions & 8 deletions src/cattie.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,15 @@ STRUCT_PLAYER gstPlayer;
"/usr/share/cattie/img/forward.png",
"/usr/share/cattie/img/laser.png",
"/usr/share/cattie/img/rotate2.png",
"/usr/share/cattie/img/gear.png",
NULL
"/usr/share/cattie/img/gear.png"
};
#else
char *ppszInstalledImagePath[] = {
"C:\\Renato\\Documents\\CSDL2\\Cattie_GXRF\\img\\cat2.png",
"C:\\Renato\\Documents\\CSDL2\\Cattie_GXRF\\img\\forward.png",
"C:\\Renato\\Documents\\CSDL2\\Cattie_GXRF\\img\\laser.png",
"C:\\Renato\\Documents\\CSDL2\\Cattie_GXRF\\img\\rotate2.png",
"C:\\Renato\\Documents\\CSDL2\\Cattie_GXRF\\img\\gear.png",
NULL
"C:\\Renato\\Documents\\CSDL2\\Cattie_GXRF\\img\\gear.png"
};
#endif

Expand All @@ -61,17 +59,15 @@ char *ppszMenuOpt[MAX_MENU_OPTIONS] = {
"option 3",
"option 4",
"option 5",
"Sair",
NULL
"Sair"
};

char *ppszImagePath[] = {
"img/cat2.png",
"img/forward.png",
"img/laser.png",
"img/rotate2.png",
"img/gear.png",
NULL
"img/gear.png"
};

/* Receive the name of program */
Expand Down

0 comments on commit 7b80c96

Please sign in to comment.