Changeset 472 for GraphicTest/Packages/bgrabitmap/bgracanvas.pas
- Timestamp:
- Apr 9, 2015, 9:58:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/Packages/bgrabitmap/bgracanvas.pas
r452 r472 6 6 7 7 uses 8 Classes, SysUtils, Graphics, GraphType, Types, FPImage, FPCanvas, BGRABitmapTypes;8 Classes, SysUtils, FPCanvas, Graphics, GraphType, Types, FPImage, BGRABitmapTypes; 9 9 10 10 type … … 229 229 procedure TBGRAFont.SetAntialiasing(const AValue: Boolean); 230 230 begin 231 if AValue and not Antialiasing then 232 Quality := fqFineAntialiasing; 231 if AValue = Antialiasing then exit; 232 if AValue then 233 Quality := fqFineAntialiasing 234 else 235 Quality := fqSystem; 233 236 end; 234 237 … … 279 282 if cf.Italic then Style += [fsItalic]; 280 283 if cf.Underline then Style += [fsUnderline]; 284 {$IF FPC_FULLVERSION>=20602} //changed in 2.6.2 and 2.7 285 if cf.StrikeThrough then Style += [fsStrikeOut]; 286 {$ELSE} 281 287 if cf.StrikeTrough then Style += [fsStrikeOut]; 288 {$ENDIF} 282 289 Name := cf.Name; 283 290 //Orientation := cf.Orientation; … … 916 923 dec(x2); 917 924 dec(y2); 925 926 if (Pen.Style = psSolid) and not Filled then 927 begin 928 ApplyPenStyle; 929 FBitmap.RectangleAntialias(x1,y1,x2,y2,Pen.ActualColor,Pen.ActualWidth); 930 exit; 931 end; 932 918 933 tex := Brush.BuildTexture(FBitmap); 919 934
Note:
See TracChangeset
for help on using the changeset viewer.