1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-08-14 21:42:50 +02:00

Fixed TCefDisplayRef.ScreenRectToPixels result

Fixed TCefDisplayRef.ScreenRectFromPixels result
This commit is contained in:
salvadordf
2022-12-16 12:41:12 +01:00
parent a20f854950
commit 74f5ea02c8
2 changed files with 5 additions and 5 deletions

View File

@@ -240,8 +240,8 @@ begin
TempPixelsRc := cef_display_convert_screen_rect_to_pixels(@TempScreenRc);
Result.Left := TempPixelsRc.x;
Result.Top := TempPixelsRc.y;
Result.Right := TempPixelsRc.Width - 1;
Result.Bottom := TempPixelsRc.Height - 1;
Result.Right := TempPixelsRc.x + TempPixelsRc.Width - 1;
Result.Bottom := TempPixelsRc.y + TempPixelsRc.Height - 1;
end
else
Result := aScreenRect;
@@ -258,8 +258,8 @@ begin
TempScreenRc := cef_display_convert_screen_rect_from_pixels(@TempPixelsRc);
Result.Left := TempScreenRc.x;
Result.Top := TempScreenRc.y;
Result.Right := TempScreenRc.Width - 1;
Result.Bottom := TempScreenRc.Height - 1;
Result.Right := TempScreenRc.x + TempScreenRc.Width - 1;
Result.Bottom := TempScreenRc.y + TempScreenRc.Height - 1;
end
else
Result := aPixelsRect;

View File

@@ -2,7 +2,7 @@
"UpdateLazPackages" : [
{
"ForceNotify" : true,
"InternalVersion" : 450,
"InternalVersion" : 451,
"Name" : "cef4delphi_lazarus.lpk",
"Version" : "108.4.13"
}