mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Minor code cleanup
This commit is contained in:
parent
a75516f53e
commit
508d6ebd58
@ -410,7 +410,7 @@ void MeasureAchievement(const UIContext &dc, const rc_client_achievement_t *achi
|
||||
}
|
||||
}
|
||||
|
||||
void MeasureGameAchievementSummary(const UIContext &dc, float *w, float *h) {
|
||||
static void MeasureGameAchievementSummary(const UIContext &dc, float *w, float *h) {
|
||||
std::string description = Achievements::GetGameAchievementSummary();
|
||||
|
||||
float tw, th;
|
||||
@ -421,12 +421,12 @@ void MeasureGameAchievementSummary(const UIContext &dc, float *w, float *h) {
|
||||
*w += 8.0f;
|
||||
}
|
||||
|
||||
void MeasureLeaderboardSummary(const UIContext &dc, const rc_client_leaderboard_t *leaderboard, float *w, float *h) {
|
||||
static void MeasureLeaderboardSummary(const UIContext &dc, const rc_client_leaderboard_t *leaderboard, float *w, float *h) {
|
||||
*w = 0.0f;
|
||||
*h = 72.0f;
|
||||
}
|
||||
|
||||
void MeasureLeaderboardEntry(const UIContext &dc, const rc_client_leaderboard_entry_t *entry, float *w, float *h) {
|
||||
static void MeasureLeaderboardEntry(const UIContext &dc, const rc_client_leaderboard_entry_t *entry, float *w, float *h) {
|
||||
*w = 0.0f;
|
||||
*h = 72.0f;
|
||||
}
|
||||
@ -537,7 +537,7 @@ void RenderAchievement(UIContext &dc, const rc_client_achievement_t *achievement
|
||||
dc.PopScissor();
|
||||
}
|
||||
|
||||
void RenderGameAchievementSummary(UIContext &dc, const Bounds &bounds, float alpha) {
|
||||
static void RenderGameAchievementSummary(UIContext &dc, const Bounds &bounds, float alpha) {
|
||||
using namespace UI;
|
||||
UI::Drawable background = dc.theme->itemStyle.background;
|
||||
|
||||
@ -579,7 +579,7 @@ void RenderGameAchievementSummary(UIContext &dc, const Bounds &bounds, float alp
|
||||
dc.RebindTexture();
|
||||
}
|
||||
|
||||
void RenderLeaderboardSummary(UIContext &dc, const rc_client_leaderboard_t *leaderboard, AchievementRenderStyle style, const Bounds &bounds, float alpha, float startTime, float time_s, bool hasFocus) {
|
||||
static void RenderLeaderboardSummary(UIContext &dc, const rc_client_leaderboard_t *leaderboard, AchievementRenderStyle style, const Bounds &bounds, float alpha, float startTime, float time_s, bool hasFocus) {
|
||||
using namespace UI;
|
||||
UI::Drawable background = dc.theme->itemStyle.background;
|
||||
if (hasFocus) {
|
||||
@ -622,7 +622,7 @@ void RenderLeaderboardSummary(UIContext &dc, const rc_client_leaderboard_t *lead
|
||||
dc.RebindTexture();
|
||||
}
|
||||
|
||||
void RenderLeaderboardEntry(UIContext &dc, const rc_client_leaderboard_entry_t *entry, const Bounds &bounds, float alpha, bool hasFocus, bool isCurrentUser) {
|
||||
static void RenderLeaderboardEntry(UIContext &dc, const rc_client_leaderboard_entry_t *entry, const Bounds &bounds, float alpha, bool hasFocus, bool isCurrentUser) {
|
||||
using namespace UI;
|
||||
UI::Drawable background = dc.theme->itemStyle.background;
|
||||
if (hasFocus) {
|
||||
|
@ -92,12 +92,6 @@ enum class AchievementRenderStyle {
|
||||
void MeasureAchievement(const UIContext &dc, const rc_client_achievement_t *achievement, AchievementRenderStyle style, float *w, float *h);
|
||||
void RenderAchievement(UIContext &dc, const rc_client_achievement_t *achievement, AchievementRenderStyle style, const Bounds &bounds, float alpha, float startTime, float time_s, bool hasFocus);
|
||||
|
||||
void MeasureGameAchievementSummary(const UIContext &dc, float *w, float *h);
|
||||
void RenderGameAchievementSummary(UIContext &dc, const Bounds &bounds, float alpha);
|
||||
|
||||
void MeasureLeaderboardEntry(const UIContext &dc, const rc_client_leaderboard_entry_t *entry, float *w, float *h);
|
||||
void RenderLeaderboardEntry(UIContext &dc, const rc_client_leaderboard_entry_t *entry, const Bounds &bounds, float alpha);
|
||||
|
||||
class AchievementView : public UI::ClickableItem {
|
||||
public:
|
||||
AchievementView(const rc_client_achievement_t *achievement, UI::LayoutParams *layoutParams = nullptr) : UI::ClickableItem(layoutParams), achievement_(achievement) {
|
||||
|
Loading…
Reference in New Issue
Block a user