diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-07-25 10:35:50 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-07-25 10:35:50 +0000 |
commit | 7c58e9f2f93efb2afbd3855c3ce8cc8492006433 (patch) | |
tree | a717d8eb74596d7e817b3e1829e7f7618a991419 /src/corelib/x11/gfx_x11.pas | |
parent | 1a5fd690766d2dd1805a9b9d0b76d5caa9ffe528 (diff) | |
download | fpGUI-7c58e9f2f93efb2afbd3855c3ce8cc8492006433.tar.xz |
* Fixed the Windows implementation of Canvas.DrawArc and Canvas.FillArc.
Diffstat (limited to 'src/corelib/x11/gfx_x11.pas')
-rw-r--r-- | src/corelib/x11/gfx_x11.pas | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/x11/gfx_x11.pas b/src/corelib/x11/gfx_x11.pas index 279c5eba..a010c298 100644 --- a/src/corelib/x11/gfx_x11.pas +++ b/src/corelib/x11/gfx_x11.pas @@ -116,8 +116,8 @@ type procedure DoEndDraw; override; function GetPixel(X, Y: integer): TfpgColor; override; procedure SetPixel(X, Y: integer; const AValue: TfpgColor); override; - procedure DoDrawArc(x, y, w, h: TfpgCoord; a1, a2: double); override; - procedure DoFillArc(x, y, w, h: TfpgCoord; a1, a2: double); override; + procedure DoDrawArc(x, y, w, h: TfpgCoord; a1, a2: Extended); override; + procedure DoFillArc(x, y, w, h: TfpgCoord; a1, a2: Extended); override; public constructor Create; override; destructor Destroy; override; @@ -1311,13 +1311,13 @@ begin {$Note We must still implement DrawPoint} end; -procedure TfpgCanvasImpl.DoDrawArc(x, y, w, h: TfpgCoord; a1, a2: double); +procedure TfpgCanvasImpl.DoDrawArc(x, y, w, h: TfpgCoord; a1, a2: Extended); begin XDrawArc(xapplication.display, FDrawHandle, Fgc, x, y, w-1, h-1, Trunc(64 * a1), Trunc(64 * a2)); end; -procedure TfpgCanvasImpl.DoFillArc(x, y, w, h: TfpgCoord; a1, a2: double); +procedure TfpgCanvasImpl.DoFillArc(x, y, w, h: TfpgCoord; a1, a2: Extended); begin XFillArc(xapplication.display, FDrawHandle, Fgc, x, y, w, h, Trunc(64 * a1), Trunc(64 * a2)); |