Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Mar 4, 2025
1 parent 1a37cf5 commit df535c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion Sources/Jazz2/UI/Menu/HighscoresSection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ namespace Jazz2::UI::Menu
DeserializeFromFile();
FillDefaultsIfEmpty();
RefreshList();

#if defined(DEATH_TARGET_ANDROID)
_currentVisibleBounds = AndroidJniWrap_Activity::getVisibleBounds();
_initialVisibleSize.X = _currentVisibleBounds.W;
_initialVisibleSize.Y = _currentVisibleBounds.H;
#endif
}

HighscoresSection::HighscoresSection(std::int32_t seriesIndex, GameDifficulty difficulty, bool isReforged, bool cheatsUsed, std::uint64_t elapsedMilliseconds, const PlayerCarryOver& itemToAdd)
Expand Down Expand Up @@ -79,7 +85,7 @@ namespace Jazz2::UI::Menu
_recalcVisibleBoundsTimeLeft -= timeMult;
if (_recalcVisibleBoundsTimeLeft <= 0.0f) {
_recalcVisibleBoundsTimeLeft = 60.0f;
_currentViewportBounds = AndroidJniWrap_Activity::getVisibleBounds();
_currentVisibleBounds = AndroidJniWrap_Activity::getVisibleBounds();
}

if (_root->ActionHit(PlayerAction::ChangeWeapon)) {
Expand Down
8 changes: 4 additions & 4 deletions Sources/Jazz2/UI/Menu/UserProfileOptionsSection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ namespace Jazz2::UI::Menu
}

#if defined(DEATH_TARGET_ANDROID)
_currentViewportBounds = AndroidJniWrap_Activity::getVisibleBounds();
_initialViewportSize.X = _currentViewportBounds.W;
_initialViewportSize.Y = _currentViewportBounds.H;
_currentVisibleBounds = AndroidJniWrap_Activity::getVisibleBounds();
_initialVisibleSize.X = _currentVisibleBounds.W;
_initialVisibleSize.Y = _currentVisibleBounds.H;
#endif
}

Expand Down Expand Up @@ -122,7 +122,7 @@ namespace Jazz2::UI::Menu
_recalcVisibleBoundsTimeLeft -= timeMult;
if (_recalcVisibleBoundsTimeLeft <= 0.0f) {
_recalcVisibleBoundsTimeLeft = 60.0f;
_currentViewportBounds = AndroidJniWrap_Activity::getVisibleBounds();
_currentVisibleBounds = AndroidJniWrap_Activity::getVisibleBounds();
}

if (_root->ActionHit(PlayerAction::ChangeWeapon)) {
Expand Down

0 comments on commit df535c0

Please sign in to comment.