X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ffreenet%2Fcaptcha%2Fsimplecaptcha.cpp;h=3753a12c637b9de8fa5fadebabf22d56fb2cb9fb;hb=9a14c0d9f7f7c319e539583b93664953764e83b7;hp=7539f80e15973aebb1ce4b9e6aeaebb5b0d48ff0;hpb=14fff12d9df0ee30e2df4bf9d22c2e83065816df;p=fms.git diff --git a/src/freenet/captcha/simplecaptcha.cpp b/src/freenet/captcha/simplecaptcha.cpp index 7539f80..3753a12 100644 --- a/src/freenet/captcha/simplecaptcha.cpp +++ b/src/freenet/captcha/simplecaptcha.cpp @@ -53,16 +53,17 @@ void SimpleCaptcha::Generate() double endangle=(double)(rand()%360)*(3.14159/180); pixel.Red=100+(rand()%150); pixel.Green=100+(rand()%150); + pixel.Blue=100+(rand()%150); DrawArc(bmp,x1,y1,radius,startangle,endangle,pixel); } for(int i=0; i<5; i++) { // keep the colors dark - lettercols[i].Red=(rand()%200); - lettercols[i].Green=(rand()%200); - lettercols[i].Blue=(rand()%200); - // draw a line with the letter col + lettercols[i].Red=(rand()%150); + lettercols[i].Green=(rand()%150); + lettercols[i].Blue=(rand()%150); + // draw a line with the letter color DrawAALine(bmp,rand()%bmpwidth,rand()%bmpheight,rand()%bmpwidth,rand()%bmpheight,lettercols[i]); }