Don't use ManagedTexture in GameInfoCache, not needed.

This commit is contained in:
Henrik Rydgård committed 2023-12-12 22:34:31 +01:00
1 parent 82bdc9ec50
commit 75e96df448
6 files changed
+14 -10

No files matched your search

+2 -2
View File
@@ -231,7 +231,7 @@ void GameButton::Draw(UIContext &dc) {
using namespace UI;
if (ginfo->icon.texture) {
texture = ginfo->icon.texture->GetTexture();
texture = ginfo->icon.texture;
}
int x = bounds_.x;
@@ -1425,7 +1425,7 @@ bool MainScreen::DrawBackgroundFor(UIContext &dc, const Path &gamePath, float pr
}
auto pic = ginfo->GetBGPic();
Draw::Texture *texture = pic ? pic->texture->GetTexture() : nullptr;
Draw::Texture *texture = pic ? pic->texture : nullptr;
uint32_t color = whiteAlpha(ease(progress)) & 0xFFc0c0c0;
if (texture) {