Changeset 504


Ignore:
Timestamp:
Dec 24, 2023, 12:57:24 PM (12 months ago)
Author:
chronos
Message:
  • Fixed: ScrollBar was not visible on Windows due to not set Width.
  • Modified: Code cleanup.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Integrated.lpi

    r482 r504  
    418418      <CustomOptions Value="-dDEBUG
    419419-dDPI"/>
     420      <OtherDefines Count="2">
     421        <Define0 Value="DEBUG"/>
     422        <Define1 Value="DPI"/>
     423      </OtherDefines>
    420424    </Other>
    421425  </CompilerOptions>
  • trunk/LocalPlayer/PVSB.pas

    r468 r504  
    189189  ScrollBar.OnChange := ScrollBarChanged;
    190190  ScrollBar.Parent := Parent;
     191  ScrollBar.Width := 24;
    191192end;
    192193
  • trunk/MiniMap.pas

    r496 r504  
    149149        if (MapRow[x] and fTerrain) in [fGrass, fPrairie, fTundra, fSwamp,
    150150          fForest, fHills] then
    151           inc(nMapLandTiles);
     151          Inc(nMapLandTiles);
    152152        if MapRow[x] and (fPrefStartPos or fStartPos) <> 0 then
    153           inc(nMapStartPositions);
     153          Inc(nMapStartPositions);
    154154      end
    155155    end;
  • trunk/Packages/CevoComponents/DrawDlg.pas

    r497 r504  
    240240  r0 := CreateRectRgn(0, 0, ClientWidth, ClientHeight);
    241241  for i := 0 to ControlCount - 1 do
    242     if not(Controls[i] is TArea) and Controls[i].Visible then
     242    if not (Controls[i] is TArea) and Controls[i].Visible then
    243243    begin
    244244      with Controls[i].BoundsRect do
     
    320320    end;
    321321    Start := Stop + 2;
    322     inc(LinesCount);
     322    Inc(LinesCount);
    323323  end;
    324324  if Preview then
Note: See TracChangeset for help on using the changeset viewer.