mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Common and VideoCommon: Change texture data from std::vector to Common::UniqueBuffer.
This commit is contained in:
parent
a736d2ed5f
commit
5a80105555
8 changed files with 36 additions and 33 deletions
|
@ -85,7 +85,7 @@ void AchievementBox::UpdateData()
|
|||
color = AchievementManager::GOLD;
|
||||
else if (m_achievement->unlocked & RC_CLIENT_ACHIEVEMENT_UNLOCKED_SOFTCORE)
|
||||
color = AchievementManager::BLUE;
|
||||
QImage i_badge(&badge.data.front(), badge.width, badge.height, QImage::Format_RGBA8888);
|
||||
QImage i_badge(badge.data.data(), badge.width, badge.height, QImage::Format_RGBA8888);
|
||||
m_badge->setPixmap(
|
||||
QPixmap::fromImage(i_badge).scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||
m_badge->adjustSize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue