Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
adjust to newer SDL2 build
  • Loading branch information
bucanero committed Apr 17, 2022
1 parent ab35813 commit 13c01d7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to the `apollo-ps4` project will be documented in this file.

## [Unreleased]()

## [v1.1.0](https://github.com/bucanero/apollo-ps4/releases/tag/v1.1.0) - 2022-04-17

### Added

* New firmware support: 5.07, 7.51
* Improved save-game listing (game name, saves count)
* Save-game selection (`Touchpad` to select)
* Copy/Resign selected saves (Bulk Management)
* Detect if a save couldn't be unmounted

### Fixed

* Fixed Trophy-set listing bug
* Avoid issue when removing mount patches on exit

## [v1.0.1](https://github.com/bucanero/apollo-ps4/releases/tag/v1.0.1) - 2022-02-02

### Fixed
Expand Down
9 changes: 3 additions & 6 deletions source/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ int LoadMenuTexture(const char* path, int idx)
// draw one background color in virtual 2D coordinates
void DrawBackground2D(u32 rgba)
{
SDL_SetRenderDrawColor(renderer, RGBA_R(rgba), RGBA_G(rgba), RGBA_B(rgba), RGBA_A(rgba));
SDL_Rect rect = {0, 0, SCREEN_WIDTH, SCREEN_HEIGHT};

SDL_RenderClear(renderer);
SDL_SetRenderDrawColor(renderer, RGBA_R(rgba), RGBA_G(rgba), RGBA_B(rgba), RGBA_A(rgba));
SDL_RenderFillRect(renderer, &rect);
}

void _drawListBackground(int off, int icon)
Expand Down Expand Up @@ -411,10 +412,6 @@ void drawEndLogo()
{
// clear the current display buffer
SDL_RenderClear(renderer);
DrawBackground2D(0xFFFFFFFF);

//App description
DrawTextureCentered(&menu_textures[logo_png_index], SCREEN_WIDTH/2, SCREEN_HEIGHT /2, 0, menu_textures[logo_png_index].width *3/4, menu_textures[logo_png_index].height *3/4, 0xFFFFFF00 | 0xFF);

rect.y = 0;
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0xFF);
Expand Down
17 changes: 8 additions & 9 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,14 @@ s32 main(s32 argc, const char* argv[])
dbglogger_init();
#endif

// Initialize SDL functions
LOG("Initializing SDL");
if (SDL_Init(SDL_INIT_VIDEO) != SUCCESS)
{
LOG("Failed to initialize SDL: %s", SDL_GetError());
return (-1);
}

initInternal();
http_init();
initPad();
Expand All @@ -1310,15 +1318,6 @@ s32 main(s32 argc, const char* argv[])
return audio;
}

// Initialize SDL functions
LOG("Initializing SDL");

if (SDL_Init(SDL_INIT_VIDEO) != SUCCESS)
{
LOG("Failed to initialize SDL: %s", SDL_GetError());
return (-1);
}

// Create a window context
LOG( "Creating a window");
window = SDL_CreateWindow("main", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, 0);
Expand Down

0 comments on commit 13c01d7

Please sign in to comment.