1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00

Small code cleanup.

This commit is contained in:
Mr_Goldberg 2020-08-03 23:08:22 -04:00
parent ba25559920
commit 2e1c24dfea
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -103,10 +103,9 @@ struct Avatar_Numbers add_friend_avatars(CSteamID id)
//TODO: get real image data from self/other peers //TODO: get real image data from self/other peers
struct Avatar_Numbers avatar_numbers; struct Avatar_Numbers avatar_numbers;
char zero_array[184 * 184 * 4] = {}; std::string small_avatar(32 * 32 * 4, 0);
std::string small_avatar(zero_array, 32 * 32 * 4); std::string medium_avatar(64 * 64 * 4, 0);
std::string medium_avatar(zero_array, 64 * 64 * 4); std::string large_avatar(184 * 184 * 4, 0);
std::string large_avatar(zero_array, 184 * 184 * 4);
avatar_numbers.smallest = settings->add_image(small_avatar, 32, 32); avatar_numbers.smallest = settings->add_image(small_avatar, 32, 32);
avatar_numbers.medium = settings->add_image(medium_avatar, 64, 64); avatar_numbers.medium = settings->add_image(medium_avatar, 64, 64);