Subversion Repositories Kolibri OS

Rev

Rev 6053 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6053 Rev 6216
Line 222... Line 222...
222
		// pixels position, where b - black, w - write
222
		// pixels position, where b - black, w - write
223
		// bw
223
		// bw
224
		// wb
224
		// wb
225
		if(b24(i)!=background) && (b24(i+3)==background) && (b24(i+line_w)==background) && (b24(i+3+line_w)!=background)
225
		if(b24(i)!=background) && (b24(i+3)==background) && (b24(i+line_w)==background) && (b24(i+3+line_w)!=background)
226
		{
226
		{
227
			dark_background = MixColors(background,b24(i),200);
227
			dark_background = MixColors(background,b24(i),210);
228
			DSDWORD[i+3] = DSDWORD[i+3] & 0xFF000000 | dark_background;
228
			DSDWORD[i+3] = DSDWORD[i+3] & 0xFF000000 | dark_background;
229
			DSDWORD[i+line_w] = DSDWORD[i+line_w] & 0xFF000000 | dark_background;			
229
			DSDWORD[i+line_w] = DSDWORD[i+line_w] & 0xFF000000 | dark_background;			
230
		}
230
		}
231
		// wb
231
		// wb
232
		// bw
232
		// bw
233
		else if(b24(i)==background) && (b24(i+3)!=background) && (b24(i+line_w)!=background) && (b24(i+3+line_w)==background)
233
		else if(b24(i)==background) && (b24(i+3)!=background) && (b24(i+line_w)!=background) && (b24(i+3+line_w)==background)
234
		{
234
		{
235
			dark_background = MixColors(background,b24(i+3),200);
235
			dark_background = MixColors(background,b24(i+3),210);
236
			DSDWORD[i] = DSDWORD[i] & 0xFF000000 | dark_background;
236
			DSDWORD[i] = DSDWORD[i] & 0xFF000000 | dark_background;
237
			DSDWORD[i+3+line_w] = DSDWORD[i+3+line_w] & 0xFF000000 | dark_background;
237
			DSDWORD[i+3+line_w] = DSDWORD[i+3+line_w] & 0xFF000000 | dark_background;
238
		}
238
		}
239
	}
239
	}
240
}
240
}