[Friends] Fix avatar corners
This commit is contained in:
parent
6cc4fa582a
commit
78e7d6375d
@ -557,6 +557,12 @@ namespace Components
|
||||
std::swap(buffer[i + 0], buffer[i + 2]);
|
||||
}
|
||||
|
||||
// Steam rounds the corners and somehow fuck up the pixels there
|
||||
buffer[3] = 0; // top-left
|
||||
buffer[(width - 1) * 4 + 3] = 0; // top-right
|
||||
buffer[((height - 1) * width * 4) + 3] = 0; // bottom-left
|
||||
buffer[((height - 1) * width * 4) + (width - 1) * 4 + 3] = 0; // bottom-right
|
||||
|
||||
image->map->UnlockRect(0);
|
||||
|
||||
return Materials::Create(Utils::String::VA("avatar_%llX", user.bits), image);
|
||||
|
Loading…
Reference in New Issue
Block a user