mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 14:00:17 +00:00
correctly construct crosshair texture
This commit is contained in:
parent
cac960800f
commit
587354248d
1 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ namespace SanAndreasUnity.UI {
|
|||
{
|
||||
for (int j = 0; j < originalHeight; j++)
|
||||
{
|
||||
tex.SetPixel(originalWidth - i + originalWidth, j, originalTex.GetPixel(i, j));
|
||||
tex.SetPixel(originalWidth - i - 1 + originalWidth, j, originalTex.GetPixel(i, j));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ namespace SanAndreasUnity.UI {
|
|||
{
|
||||
for (int j = 0; j < originalHeight; j++)
|
||||
{
|
||||
tex.SetPixel(i, originalHeight - j + originalHeight, originalTex.GetPixel(i, j));
|
||||
tex.SetPixel(i, originalHeight - j - 1 + originalHeight, originalTex.GetPixel(i, j));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ namespace SanAndreasUnity.UI {
|
|||
{
|
||||
for (int j = 0; j < originalHeight; j++)
|
||||
{
|
||||
tex.SetPixel(originalWidth - i + originalWidth, originalHeight - j + originalHeight, originalTex.GetPixel(i, j));
|
||||
tex.SetPixel(originalWidth - i - 1 + originalWidth, originalHeight - j - 1 + originalHeight, originalTex.GetPixel(i, j));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue