mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 03:44:16 +00:00
fix "Program is using uninitialized variables." GCC warning
This commit is contained in:
parent
a523f686fc
commit
d5068e071d
@ -86,7 +86,7 @@ Color Color::fromIndex(int index)
|
|||||||
// static
|
// static
|
||||||
Color Color::fromImage(PixelFormat pixelFormat, color_t c)
|
Color Color::fromImage(PixelFormat pixelFormat, color_t c)
|
||||||
{
|
{
|
||||||
Color color = Color::fromMask();
|
Color color = app::Color::fromMask();
|
||||||
|
|
||||||
switch (pixelFormat) {
|
switch (pixelFormat) {
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ Color Color::fromImageGetPixel(Image *image, int x, int y)
|
|||||||
// static
|
// static
|
||||||
Color Color::fromString(const std::string& str)
|
Color Color::fromString(const std::string& str)
|
||||||
{
|
{
|
||||||
Color color = Color::fromMask();
|
Color color = app::Color::fromMask();
|
||||||
|
|
||||||
if (str != "mask") {
|
if (str != "mask") {
|
||||||
if (str.find("rgb{") == 0 ||
|
if (str.find("rgb{") == 0 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user