- // Change dark things to really dark
- dest.SetRGB(x,y, darkCol.Red(), darkCol.Green(), darkCol.Blue());
- }
- }
- }
-
-
- // First attempt, causes problems with scissors icon
-#if 0
- int x = 0;
- int y = 1;
-
- int width = src.GetWidth();
- int height = src.GetHeight();
-
- unsigned int redCur, greenCur, blueCur;
-
- do
- {
- redCur = src.GetRed(x, y);
- greenCur = src.GetGreen(x, y);
- blueCur = src.GetBlue(x, y);
-
- if ( IS_IN_ARRAY(x-1,y-1) )
- {
- unsigned int redUpper = src.GetRed(x-1, y-1);
- unsigned int greenUpper = src.GetGreen(x-1, y-1);
- unsigned int blueUpper = src.GetBlue(x-1, y-1);
-
- // if the upper element is lighter than current
- if ( IS_GREATER(redUpper, greenUpper, blueUpper, redCur, greenCur, blueCur) )
- {