Changeset 317 for trunk/Packages


Ignore:
Timestamp:
Mar 19, 2021, 9:59:02 AM (4 years ago)
Author:
chronos
Message:
  • Added: Allow to set gamma corection in settings dialog.
Location:
trunk/Packages/CevoComponents
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/BaseWin.pas

    r290 r317  
    153153begin
    154154  if FWindowMode = wmSubmodal then
    155     Close
     155    Close;
    156156end;
    157157
     
    316316    else
    317317      MainTexture := MainTexture;
    318     MainTexture := MainTexture
     318    MainTexture := MainTexture;
    319319  end;
    320320  Canvas.Font.Assign(UniFont[ftCaption]);
     
    330330  begin
    331331    FrameTop := 0;
    332     FrameBottom := ClientHeight
     332    FrameBottom := ClientHeight;
    333333  end
    334334  else
     
    338338      FrameBottom := ClientHeight - (WideFrame - NarrowFrame)
    339339    else
    340       FrameBottom := ClientHeight
     340      FrameBottom := ClientHeight;
    341341  end;
    342342  Fill(Canvas, 3, InnerBottom + 1, ClientWidth - 6, ClientHeight - InnerBottom -
     
    386386        MoveTo(ClientWidth - 3 - ModalFrameIndent, 3);
    387387        LineTo(ClientWidth - 3 - ModalFrameIndent, TitleHeight);
    388       end
     388      end;
    389389  end
    390390  else
     
    441441        LineTo(ClientWidth - CaptionLeft - 2, FrameBottom - 2);
    442442      end;
    443     end
     443    end;
    444444  end;
    445445  RisedTextOut(Canvas, Cut - 1, 7, Caption);
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r316 r317  
    9292procedure VLightGradient(ca: TCanvas; x, y, Height, Color: integer);
    9393procedure VDarkGradient(ca: TCanvas; x, y, Height, Kind: integer);
     94procedure UnderlinedTitleValue(Canvas: TCanvas; Title, Value: string; X, Y, Width: Integer);
    9495procedure NumberBar(dst: TBitmap; x, y: integer; Cap: string; val: integer;
    9596  const T: TTexture);
     
    13131314  Gradient(ca, x, y, 1, 0, 0, Height,
    13141315    HGrSystem.Data.Canvas.Pixels[187, 137 + Kind], Brightness);
     1316end;
     1317
     1318procedure UnderlinedTitleValue(Canvas: TCanvas; Title, Value: string; X, Y, Width: Integer);
     1319begin
     1320  DLine(Canvas, X, X + Width, Y + 19, MainTexture.clBevelLight, MainTexture.clBevelShade);
     1321  RisedTextOut(Canvas, X, Y, Title);
     1322  RisedTextOut(Canvas, X + Width - BiColorTextWidth(Canvas, Value), Y, Value);
    13151323end;
    13161324
  • trunk/Packages/CevoComponents/Sound.pas

    r290 r317  
    1111type
    1212  TPlayStyle = (psAsync, psSync);
     13  TSoundMode = (smOff, smOn, smOnAlt);
    1314
    1415  { TSoundPlayer }
     
    5051procedure PreparePlay(Item: string; Index: Integer = -1);
    5152
    52 const
    53   // sound modes
    54   smOff = 0;
    55   smOn = 1;
    56   smOnAlt = 2;
    57 
    5853var
    5954  Sounds: TStringTable;
    60   SoundMode: Integer;
     55  SoundMode: TSoundMode;
    6156  SoundPlayer: TSoundPlayer;
    6257  SoundList: TFPGObjectList<TSound>;
Note: See TracChangeset for help on using the changeset viewer.