[feat] use a list to show thumbnails of recent connections

This commit is contained in:
dijunkun
2024-11-07 16:58:25 +08:00
parent 963f1da1d8
commit de721ac6e3
6 changed files with 24 additions and 16 deletions

View File

@@ -22,8 +22,8 @@ class Thumbnail {
const std::string& host_name,
const std::string& remote_id);
int LoadThumbnail(SDL_Renderer* renderer, SDL_Texture** texture, int* width,
int* height);
int LoadThumbnail(SDL_Renderer* renderer, std::vector<SDL_Texture*>& textures,
int* width, int* height);
private:
std::vector<std::filesystem::path> FindThumbnailPath(