Skip to content

Commit

Permalink
Merge pull request #532 from sneakywumpus/dev
Browse files Browse the repository at this point in the history
make buttons static, no draw debug by default
  • Loading branch information
udo-munk authored Jan 26, 2025
2 parents 8271ac5 + 6162afe commit adcd589
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions z80core/simpanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void check_buttons(unsigned x, unsigned y, bool press);
#define PORTS_BUTTON 1
#define STICKY_BUTTON 2

button_t buttons[] = {
static button_t buttons[] = {
[ MEMORY_BUTTON ] = {
false, false, false, false, 500, 1, 60, 19, &font12, "Memory"
},
Expand All @@ -132,7 +132,7 @@ button_t buttons[] = {
false, false, false, false, 500, 43, 60, 19, &font12, "Sticky"
}
};
const int nbuttons = sizeof(buttons) / sizeof(button_t);
static const int nbuttons = sizeof(buttons) / sizeof(button_t);

/* SDL2/X11 stuff */
static unsigned xsize, ysize;
Expand Down Expand Up @@ -505,8 +505,6 @@ static inline void process_events(void)

#endif /* !WANT_SDL */

#define DRAW_DEBUG

/*
* Fill the pixmap with the specified color.
*/
Expand Down

0 comments on commit adcd589

Please sign in to comment.