Selaa lähdekoodia

* patch to fix fillpoly, by borsa77

git-svn-id: trunk@13208 -
florian 16 vuotta sitten
vanhempi
commit
d338684196
1 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 7 4
      packages/graph/src/inc/graph.inc

+ 7 - 4
packages/graph/src/inc/graph.inc

@@ -828,10 +828,13 @@ var
            HLine(x1-StartXViewPort,x2-StartXViewPort,y-StartYViewPort);
            HLine(x1-StartXViewPort,x2-StartXViewPort,y-StartYViewPort);
            CurrentColor := OldCurrentColor;
            CurrentColor := OldCurrentColor;
          end;
          end;
-       $ff:
-         begin
-           HLine(x1-StartXViewPort,x2-StartXViewPort,y-StartYViewPort);
-         end;
+      $ff:
+        begin
+          OldCurrentColor := CurrentColor;
+          CurrentColor := FillSettings.Color;
+          HLine(x1-StartXViewPort,x2-StartXViewPort,y-StartYViewPort);
+          CurrentColor := OldCurrentColor;
+        end;
        else
        else
          begin
          begin
            { number of times to go throuh the 8x8 pattern }
            { number of times to go throuh the 8x8 pattern }