mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
fix skin preview leg rendering (#4538)
This commit is contained in:
commit
5c6c92f286
|
|
@ -66,8 +66,8 @@ static QImage generatePreviews(QImage texture, bool slim)
|
|||
paint.drawImage(4, 22, texture.copy(4, 20, 4, 12));
|
||||
paint.drawImage(4, 22, texture.copy(4, 36, 4, 12));
|
||||
// left leg
|
||||
paint.drawImage(8, 22, texture.copy(4, 52, 4, 12));
|
||||
paint.drawImage(8, 22, texture.copy(20, 52, 4, 12));
|
||||
paint.drawImage(8, 22, texture.copy(4, 52, 4, 12));
|
||||
|
||||
auto armWidth = slim ? 3 : 4;
|
||||
auto armPosX = slim ? 1 : 0;
|
||||
|
|
@ -89,8 +89,8 @@ static QImage generatePreviews(QImage texture, bool slim)
|
|||
paint.drawImage(24, 22, texture.copy(12, 20, 4, 12));
|
||||
paint.drawImage(24, 22, texture.copy(12, 36, 4, 12));
|
||||
// left leg
|
||||
paint.drawImage(28, 22, texture.copy(12, 52, 4, 12));
|
||||
paint.drawImage(28, 22, texture.copy(28, 52, 4, 12));
|
||||
paint.drawImage(28, 22, texture.copy(12, 52, 4, 12));
|
||||
|
||||
// right arm
|
||||
paint.drawImage(armPosX + 20, 10, texture.copy(48 + armWidth, 20, armWidth, 12));
|
||||
|
|
|
|||
Loading…
Reference in a new issue