mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[feat] use unordered map to store recent connection info so that the most recent connections are shown at the front
This commit is contained in:
@@ -186,8 +186,8 @@ int Thumbnail::SaveToThumbnail(const char* yuv420p, int width, int height,
|
||||
|
||||
int Thumbnail::LoadThumbnail(
|
||||
SDL_Renderer* renderer,
|
||||
std::map<std::string, RecentConnection>& recent_connections, int* width,
|
||||
int* height) {
|
||||
std::unordered_map<std::string, RecentConnection>& recent_connections,
|
||||
int* width, int* height) {
|
||||
for (auto& it : recent_connections) {
|
||||
if (it.second.texture != nullptr) {
|
||||
SDL_DestroyTexture(it.second.texture);
|
||||
|
||||
Reference in New Issue
Block a user