mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
Merge branch 'GlGtk3' into 'main'
glgtk3: Fixed implementation of LBackingScaleFactor. Closes #40315. See merge request freepascal.org/lazarus/lazarus!205
This commit is contained in:
commit
7d438f07af
@ -67,8 +67,11 @@ function LBackingScaleFactor(Handle: HWND): single;
|
||||
var
|
||||
glarea: TGtk3GLArea absolute Handle;
|
||||
begin
|
||||
// todo(ryan): get the correct screen for the handle!
|
||||
result := TGdkScreen.get_default^.get_monitor_scale_factor(0);
|
||||
if Assigned(glarea) then begin
|
||||
Result := glarea.GetWindow^.get_scale_factor;
|
||||
end else begin
|
||||
Result := 1;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure LOpenGLViewport(Handle: HWND; Left, Top, Width, Height: integer);
|
||||
|
Loading…
Reference in New Issue
Block a user