mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Surface: Remove alpha flag.
As for SurfaceCollection, the alpha flag passed to the Surface constructor was also always true. Therefore there is no need to have the flag.
This commit is contained in:
@@ -80,7 +80,7 @@ Surface *SurfaceCollection::add(const string &path) {
|
||||
return NULL;
|
||||
} else if (!fileExists(filePath)) return NULL;
|
||||
|
||||
Surface *s = new Surface(filePath, "");
|
||||
Surface *s = new Surface(filePath);
|
||||
surfaces[path] = s;
|
||||
return s;
|
||||
}
|
||||
@@ -94,7 +94,7 @@ Surface *SurfaceCollection::addSkinRes(const string &path) {
|
||||
string skinpath = getSkinFilePath(path);
|
||||
if (skinpath.empty())
|
||||
return NULL;
|
||||
Surface *s = new Surface(skinpath, "", true);
|
||||
Surface *s = new Surface(skinpath);
|
||||
if (s != NULL)
|
||||
surfaces[path] = s;
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user