diff options
author | Erich Eckner <git@eckner.net> | 2018-10-02 10:26:31 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-02 10:26:31 +0200 |
commit | 842e89c229ccc8d77c69622a6cc7e5fe974a33ae (patch) | |
tree | a796477bdbc21d05473c4e35c2b44a87e1447b07 /raetselunit.pas | |
parent | b89e7cd8fcbcc6d893d3dd53408c8f42aebef30a (diff) | |
download | Raetsel-842e89c229ccc8d77c69622a6cc7e5fe974a33ae.tar.xz |
richtige Diagonalenfelder markieren
Diffstat (limited to 'raetselunit.pas')
-rw-r--r-- | raetselunit.pas | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/raetselunit.pas b/raetselunit.pas index 04052b9..1819408 100644 --- a/raetselunit.pas +++ b/raetselunit.pas @@ -244,6 +244,7 @@ begin zufallSE.hint:='Nummer'; progressbar1:=tProgressBar.create(besitzer); progressbar1.visible:=false; + progressbar1.smooth:=true; progressbar1.parent:=besitzer; end; @@ -646,7 +647,7 @@ begin s:=uebersetze(i); with zeichenflaeche.canvas do begin brush.color:=$FFFFFF; - if (x>=0) and (y>=0) and (x<dim) and (y<dim) and (diagonalenCB.checked and ((x=y) or (x+y=dim+1))) then + if (x>=0) and (y>=0) and (x<dim) and (y<dim) and (diagonalenCB.checked and ((x=y) or (x+y=dim-1))) then brush.color:=brush.color - $181818; if not passtZumZeichnen(x,y) then font.color:=$0000FF |