From b98cdb4242f60a09d815414b7d8bcc35416cd920 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Tschumperl=C3=A9?= <david.tschumperle@gmail.com>
Date: Thu, 21 Jun 2018 09:52:44 +0200
Subject: [PATCH] Final release 2.3.0

---
 examples/odykill.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/odykill.cpp b/examples/odykill.cpp
index 9c17e38..cfa3517 100644
--- a/examples/odykill.cpp
+++ b/examples/odykill.cpp
@@ -115,12 +115,12 @@ int main(int argc,char **argv) {
   const CImg<unsigned char>
     background = CImg<unsigned char>(100,100,1,3,0).noise(100,2).draw_plasma().
     resize(back0.width(),back0.height(),1,3,5)/2.5;
-  { for (unsigned int k=0; k<21; k++) {
+  for (unsigned int k = 0; k<21; k++) {
     CImg<> tmp = graphics[k].resize(k<5?32:164,k<5?32:164,1,3);
     cimg_forXY(tmp,x,y) tmp(x,y)  = (tmp(x,y,0)==255 && tmp(x,y,1)==255 && tmp(x,y,2)==255)?0.0f:1.0f;
-    masks[k]=tmp.get_shared_channel(0);
+    masks[k] = tmp.get_channel(0);
     graphics[k].resize(k<5?32:164,k<5?32:164,1,3,5);
-  }}
+  }
 
   CImg<unsigned char> canvas(background);
   int n = 5 + ((int)(200*cimg::rand())%16);
-- 
GitLab