mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 10:16:50 +02:00
Setting code formatting standard to allman.
This commit is contained in:
@@ -8,23 +8,23 @@
|
||||
|
||||
Image * ImageBuilder::CreateImage(std::string path, std::string name, float scaleX, float scaleY)
|
||||
{
|
||||
Image *image = NULL;
|
||||
std::vector<std::string> extensions;
|
||||
Image *image = NULL;
|
||||
std::vector<std::string> extensions;
|
||||
|
||||
extensions.push_back("png");
|
||||
extensions.push_back("PNG");
|
||||
extensions.push_back("jpg");
|
||||
extensions.push_back("JPG");
|
||||
extensions.push_back("jpeg");
|
||||
extensions.push_back("JPEG");
|
||||
extensions.push_back("png");
|
||||
extensions.push_back("PNG");
|
||||
extensions.push_back("jpg");
|
||||
extensions.push_back("JPG");
|
||||
extensions.push_back("jpeg");
|
||||
extensions.push_back("JPEG");
|
||||
|
||||
std::string prefix = path + "/" + name;
|
||||
std::string file;
|
||||
std::string prefix = path + "/" + name;
|
||||
std::string file;
|
||||
|
||||
if(Utils::FindMatchingFile(prefix, extensions, file))
|
||||
{
|
||||
image = new Image(file, scaleX, scaleY);
|
||||
}
|
||||
if(Utils::FindMatchingFile(prefix, extensions, file))
|
||||
{
|
||||
image = new Image(file, scaleX, scaleY);
|
||||
}
|
||||
|
||||
return image;
|
||||
return image;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user