Diff of /PaletteEdit.cpp [e757e7] .. [be9162]  Maximize  Restore

Switch to side-by-side view

--- a/PaletteEdit.cpp
+++ b/PaletteEdit.cpp
@@ -388,6 +388,16 @@
       fg-=ftmp;
     }
     break;
+  case 21: //darken
+    fr = fr*fr/255;
+    fg = fg*fg/255;
+    fb = fb*fb/255;
+    break;
+  case 22: //contrast
+    fr = fr*fr/128;
+    fg = fg*fg/128;
+    fb = fb*fb/128;
+    break;
   }
   if(fr>255) fr=255;
   else if(fr<0) fr=0;
@@ -397,7 +407,7 @@
   else if(fb<0) fb=0;
 }
 
-#define SCRIPT 21
+#define SCRIPT 23
 
 int CPaletteEdit::ExecuteScript(int &fr, int &fg, int &fb, int &ftmp)
 {

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks