Ignore:
Timestamp:
May 7, 2020, 7:05:57 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code in HighDPI branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/BaseWin.pas

    r180 r193  
    500500  Offscreen := TDpiBitmap.Create;
    501501  Offscreen.PixelFormat := pf24bit;
    502   if Screen.Height - yUnused < 480 then
    503     Offscreen.SetSize(Screen.Width, 480)
     502  if DpiScreen.Height - yUnused < 480 then
     503    Offscreen.SetSize(DpiScreen.Width, 480)
    504504  else
    505     Offscreen.SetSize(Screen.Width, Screen.Height - yUnused);
     505    Offscreen.SetSize(DpiScreen.Width, DpiScreen.Height - yUnused);
    506506  Offscreen.Canvas.FillRect(0, 0, Offscreen.Width, OffScreen.Height);
    507507  Offscreen.Canvas.Brush.Style := bsClear;
Note: See TracChangeset for help on using the changeset viewer.