You've already forked CEF4Delphi
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:
@@ -240,8 +240,8 @@ begin
|
|||||||
TempPixelsRc := cef_display_convert_screen_rect_to_pixels(@TempScreenRc);
|
TempPixelsRc := cef_display_convert_screen_rect_to_pixels(@TempScreenRc);
|
||||||
Result.Left := TempPixelsRc.x;
|
Result.Left := TempPixelsRc.x;
|
||||||
Result.Top := TempPixelsRc.y;
|
Result.Top := TempPixelsRc.y;
|
||||||
Result.Right := TempPixelsRc.Width - 1;
|
Result.Right := TempPixelsRc.x + TempPixelsRc.Width - 1;
|
||||||
Result.Bottom := TempPixelsRc.Height - 1;
|
Result.Bottom := TempPixelsRc.y + TempPixelsRc.Height - 1;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Result := aScreenRect;
|
Result := aScreenRect;
|
||||||
@@ -258,8 +258,8 @@ begin
|
|||||||
TempScreenRc := cef_display_convert_screen_rect_from_pixels(@TempPixelsRc);
|
TempScreenRc := cef_display_convert_screen_rect_from_pixels(@TempPixelsRc);
|
||||||
Result.Left := TempScreenRc.x;
|
Result.Left := TempScreenRc.x;
|
||||||
Result.Top := TempScreenRc.y;
|
Result.Top := TempScreenRc.y;
|
||||||
Result.Right := TempScreenRc.Width - 1;
|
Result.Right := TempScreenRc.x + TempScreenRc.Width - 1;
|
||||||
Result.Bottom := TempScreenRc.Height - 1;
|
Result.Bottom := TempScreenRc.y + TempScreenRc.Height - 1;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Result := aPixelsRect;
|
Result := aPixelsRect;
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 450,
|
"InternalVersion" : 451,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "108.4.13"
|
"Version" : "108.4.13"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user