Ok habe mal den Code formatiert

Tut mir Leid, dass er so unordentlich war.
Hm ich habe keine Ahnung woran es liegen könnte. Nun gut eine Vermutung wäre hier :
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66:
| procedure loeschen(xkord,ykord: integer); Begin if image.Canvas.Pixels[xk+1,yk]=clblack then begin xk:=xk+1; yk:=yk; image.Canvas.Pixels[xk,yk]:= clwhite; end else
if image.Canvas.Pixels[xk+1,yk+1]=clblack then begin xk:=xk+1; yk:=yk+1; image.Canvas.Pixels[xk,yk]:= clwhite; end else
if image.Canvas.Pixels[xk+1,yk-1]=clblack then begin xk:=xk+1; yk:=yk-1; image.Canvas.Pixels[xk,yk]:= clwhite; end else
if image.Canvas.Pixels[xk,yk+1]=clblack then begin xk:=xk; yk:=yk+1; image.Canvas.Pixels[xk,yk]:= clwhite; end else
if image.Canvas.Pixels[xk,yk-1]=clblack then begin xk:=xk; yk:=yk-1; image.Canvas.Pixels[xk,yk]:= clwhite; end else
if image.Canvas.Pixels[xk-1,yk+1]=clblack then begin xk:=xk-1; yk:=yk+1; image.Canvas.Pixels[xk,yk]:= clwhite; end else
if image.Canvas.Pixels[xk-1,yk]=clblack then begin xk:=xk-1; yk:=yk; image.Canvas.Pixels[xk,yk]:= clwhite; end else
if image.Canvas.Pixels[xk-1,yk-1]=clblack then begin xk:=xk-1; yk:=yk-1; image.Canvas.Pixels[xk,yk]:= clwhite; end;
End; |
Könnte das da irgendwo sein? Wie gesagt, es ist nur, wenn ich nach rechts gehe.
MfG
Lexo
//edit: Hab des Problem gelöst!