"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "draw.c" between
motion-release-4.2.2.tar.gz and motion-Release-4.3.0.tar.gz

About: Motion monitors the video signal from one or more cameras and is able to detect motion.

draw.c  (motion-release-4.2.2):draw.c  (motion-Release-4.3.0)
skipping to change at line 1095 skipping to change at line 1095
if ((startx < 1) || (starty < 1) || (len < 1)) return 0; if ((startx < 1) || (starty < 1) || (len < 1)) return 0;
line_offset = width - (7 * factor); line_offset = width - (7 * factor);
next_char_offs = (width * 8 * factor) - (6 * factor); next_char_offs = (width * 8 * factor) - (6 * factor);
image_ptr = image + startx + (starty * width); image_ptr = image + startx + (starty * width);
for (pos = 0; pos < len; pos++) { for (pos = 0; pos < len; pos++) {
int pos_check = (int)text[pos]; int pos_check = (int)text[pos];
if ((pos_check <0) || (pos_check >127)) pos_check = 45; /* Use a - for n
on ascii characters*/
char_ptr = char_arr_ptr[pos_check]; char_ptr = char_arr_ptr[pos_check];
for (y = 0; y < 8 * factor; y++) { for (y = 0; y < 8 * factor; y++) {
for (x = 0; x < 7 * factor; x++) { for (x = 0; x < 7 * factor; x++) {
if (pos_check < 0) {
image_ptr++;
continue;
}
char_ptr = char_arr_ptr[pos_check] + y/factor*7 + x/factor; char_ptr = char_arr_ptr[pos_check] + y/factor*7 + x/factor;
switch(*char_ptr) { switch(*char_ptr) {
case 1: case 1:
*image_ptr = 0; *image_ptr = 0;
break; break;
case 2: case 2:
*image_ptr = 255; *image_ptr = 255;
break; break;
default: default:
 End of changes. 2 change blocks. 
6 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)