From be8aee17886c3d0cc438fa9a03fc2b9ccfc23e52 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 13 Jul 2016 22:27:54 +0200 Subject: [PATCH] [DEV] Update change of egami new API --- gale/context/X11/Context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gale/context/X11/Context.cpp b/gale/context/X11/Context.cpp index 213ec77..cf636b4 100644 --- a/gale/context/X11/Context.cpp +++ b/gale/context/X11/Context.cpp @@ -1104,9 +1104,9 @@ class X11Interface : public gale::Context { /****************************************************************************************/ void setIcon(const std::string& _inputFile) { #ifdef GALE_BUILD_EGAMI - egami::Image dataImage; + egami::Image dataImage = egami::load(_inputFile); // load data - if (false == egami::load(dataImage, _inputFile)) { + if (dataImage.exist() == false) { GALE_ERROR("Error when loading Icon"); return; }