Skip to content

Commit

Permalink
VITA: fix missing attributes for HD Dir files on Amiga side
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Dec 17, 2016
1 parent 6bc80c3 commit 903826d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/fsdb_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void fsdb_fill_file_attrs (a_inode *aino)
| (S_IWUSR & statbuf.st_mode ? 0 : A_FIBF_WRITE)
| (S_IRUSR & statbuf.st_mode ? 0 : A_FIBF_READ));

#if defined(WIN32) || defined(ANDROIDSDL)
#if defined(WIN32) || defined(ANDROIDSDL) || defined(__PSP2__)
// Always give execute & read permission
aino->amigaos_mode &= ~A_FIBF_EXECUTE;
aino->amigaos_mode &= ~A_FIBF_READ;
Expand Down
5 changes: 1 addition & 4 deletions src/gp2x/menu/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,7 @@ void text_draw_background()
void text_flip(void)
{
SDL_Delay(10);
SDL_BlitSurface(text_screen,NULL,prSDLScreen,NULL);
//DEBUG
//SDL_FillRect(prSDLScreen,NULL,SDL_MapRGB(prSDLScreen->format, 255, 255, 255))

SDL_BlitSurface(text_screen,NULL,prSDLScreen,NULL);
SDL_Flip(prSDLScreen);
}

Expand Down
4 changes: 3 additions & 1 deletion src/gp2x/menu/menu_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,11 +755,13 @@ static void raise_mainMenu()
SDL_Flip(prSDLScreen);
SDL_FreeSurface(prSDLScreen);
}

//for some reason the max texture size is 320 by 240
prSDLScreen = SDL_SetVideoMode(320, 240, 16, SDL_HWSURFACE|SDL_DOUBLEBUF);
int sh = 480;
int sw = (float)320*((float)480/(float)240);
int x = (960-sw)/2;
int y = 0;
int y = 0;
SDL_SetVideoModeScaling(x, y, sw, sh);
printf("SDL_SetVideoModeScaling(%i, %i, %i, %i)\n", x, y, sw, sh);
#elif PANDORA
Expand Down

0 comments on commit 903826d

Please sign in to comment.