You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +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);
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user