mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 23:28:41 +02:00
qt, carbon: improve EnumDisplayMonitors
git-svn-id: trunk@19261 -
This commit is contained in:
parent
ddf2b15e66
commit
4db59e3374
@ -799,7 +799,10 @@ begin
|
||||
'TCarbonWidgetSet.EnumDisplayMonitors', 'CGGetActiveDisplayList') then Exit(False);
|
||||
Result := True;
|
||||
for i := 0 to Count - 1 do
|
||||
begin
|
||||
Result := Result and lpfnEnum(HMONITOR(activeDspys[i]), 0, nil, dwData);
|
||||
if not Result then break;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TCarbonWidgetSet.EnumFontFamilies(DC: HDC; Family: Pchar;
|
||||
|
@ -1331,9 +1331,12 @@ var
|
||||
Desktop: QDesktopWidgetH;
|
||||
begin
|
||||
Desktop := QApplication_desktop();
|
||||
for i := 0 to QDesktopWidget_numScreens(Desktop) - 1 do
|
||||
lpfnEnum(i, 0, nil, dwData);
|
||||
Result := True;
|
||||
for i := 0 to QDesktopWidget_numScreens(Desktop) - 1 do
|
||||
begin
|
||||
Result := Result and lpfnEnum(i, 0, nil, dwData);
|
||||
if not Result then break;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user