Ignore:
Timestamp:
Apr 9, 2015, 9:58:36 PM (10 years ago)
Author:
chronos
Message:
  • Fixed: Use csOpaque control style also to Image, PaintBox and OpenGLControl.
  • Modified: Change size of test frame with SpinEdits as delayed using timer.
  • Updated: BRGABitmap package to version 8.1.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/Packages/bgrabitmap/bgracanvas.pas

    r452 r472  
    66
    77uses
    8   Classes, SysUtils, Graphics, GraphType, Types, FPImage, FPCanvas, BGRABitmapTypes;
     8  Classes, SysUtils, FPCanvas, Graphics, GraphType, Types, FPImage, BGRABitmapTypes;
    99
    1010type
     
    229229procedure TBGRAFont.SetAntialiasing(const AValue: Boolean);
    230230begin
    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;
    233236end;
    234237
     
    279282    if cf.Italic then Style += [fsItalic];
    280283    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}
    281287    if cf.StrikeTrough then Style += [fsStrikeOut];
     288{$ENDIF}
    282289    Name := cf.Name;
    283290    //Orientation := cf.Orientation;
     
    916923    dec(x2);
    917924    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
    918933    tex := Brush.BuildTexture(FBitmap);
    919934
Note: See TracChangeset for help on using the changeset viewer.