fix some tools' icons breaking their bounding box
This commit is contained in:
parent
16acc95621
commit
04c875120a
@ -677,7 +677,7 @@ VideoBuffer * Renderer::WallIcon(int wallID, int width, int height)
|
|||||||
newTexture->SetPixel(i, j, PIXR(pc), PIXG(pc), PIXB(pc), 255);
|
newTexture->SetPixel(i, j, PIXR(pc), PIXG(pc), PIXB(pc), 255);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
newTexture->SetCharacter(4, 2, 0x8D, 255, 255, 255, 255);
|
newTexture->AddCharacter(4, 2, 0x8D, 255, 255, 255, 255);
|
||||||
for (i=width/3; i<width; i++)
|
for (i=width/3; i<width; i++)
|
||||||
{
|
{
|
||||||
newTexture->SetPixel(i, 7+(int)(3.9f*cos(i*0.3f)), 255, 255, 255, 255);
|
newTexture->SetPixel(i, 7+(int)(3.9f*cos(i*0.3f)), 255, 255, 255, 255);
|
||||||
|
@ -15,7 +15,7 @@ VideoBuffer * SampleTool::GetIcon(int toolID, int width, int height)
|
|||||||
newTexture->SetPixel(x, y, PIXR(pc), PIXG(pc), PIXB(pc), 255);
|
newTexture->SetPixel(x, y, PIXR(pc), PIXG(pc), PIXB(pc), 255);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
newTexture->SetCharacter((width/2)-5, (height/2)-5, 0xE6, 255, 255, 255, 255);
|
newTexture->AddCharacter((width/2)-5, (height/2)-5, 0xE6, 255, 255, 255, 255);
|
||||||
newTexture->BlendPixel(10, 9, 100, 180, 255, 255);
|
newTexture->BlendPixel(10, 9, 100, 180, 255, 255);
|
||||||
newTexture->BlendPixel(11, 8, 100, 180, 255, 255);
|
newTexture->BlendPixel(11, 8, 100, 180, 255, 255);
|
||||||
newTexture->BlendPixel(12, 7, 100, 180, 255, 255);
|
newTexture->BlendPixel(12, 7, 100, 180, 255, 255);
|
||||||
|
@ -268,7 +268,7 @@ VideoBuffer * SignTool::GetIcon(int toolID, int width, int height)
|
|||||||
newTexture->SetPixel(x, y, PIXR(pc), PIXG(pc), PIXB(pc), 255);
|
newTexture->SetPixel(x, y, PIXR(pc), PIXG(pc), PIXB(pc), 255);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
newTexture->SetCharacter((width/2)-5, (height/2)-5, 0xA1, 32, 64, 128, 255);
|
newTexture->AddCharacter((width/2)-5, (height/2)-5, 0xA1, 32, 64, 128, 255);
|
||||||
newTexture->BlendCharacter((width/2)-5, (height/2)-5, 0xA0, 255, 255, 255, 255);
|
newTexture->BlendCharacter((width/2)-5, (height/2)-5, 0xA0, 255, 255, 255, 255);
|
||||||
return newTexture;
|
return newTexture;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user