Skip to content

Commit

Permalink
- new menu background
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Jan 14, 2017
1 parent 321b112 commit 8530b47
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ Square = Backspace
Triangle = Toggle Shift

CHANGELOG:
1.47

- new menu background
- fix swapped "Quote"<->"Backquote" overlay keyboard keys

1.46

- never save autofire button to reduce confusion
Expand Down
Binary file added psp2data/data/background_static.bmp
Binary file not shown.
9 changes: 8 additions & 1 deletion src/gp2x/menu/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,13 @@ void text_draw_background()
int i,j;
int w=text_screen->w+text_background->w-1;
int h=text_screen->h+text_background->h-1;

#ifdef __PSP2__
r.x=0;
r.y=0;
r.w=text_background->w;
r.h=text_background->h;
SDL_BlitSurface(text_background,NULL,text_screen,&r);
#else
if (menu_moving)
{
if (pos_x>=0) pos_x=-text_screen->w;
Expand All @@ -308,6 +314,7 @@ void text_draw_background()
r.h=text_background->h;
SDL_BlitSurface(text_background,NULL,text_screen,&r);
}
#endif
if (menu_moving)
update_window_color();
}
Expand Down
4 changes: 4 additions & 0 deletions src/gp2x/menu/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
extern SDL_Surface *prSDLScreen;

#define MENU_FILE_SPLASH DATA_PREFIX "gp2xsplash.bmp"
#ifdef __PSP2__
#define MENU_FILE_BACKGROUND DATA_PREFIX "background_static.bmp"
#else
#define MENU_FILE_BACKGROUND DATA_PREFIX "background.bmp"
#endif
#define MENU_FILE_WINDOW DATA_PREFIX "window.bmp"
#define MENU_FILE_TEXT DATA_PREFIX "text.bmp"
#define MENU_DIR_DEFAULT "."
Expand Down

0 comments on commit 8530b47

Please sign in to comment.