mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:19:19 +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);
|
'TCarbonWidgetSet.EnumDisplayMonitors', 'CGGetActiveDisplayList') then Exit(False);
|
||||||
Result := True;
|
Result := True;
|
||||||
for i := 0 to Count - 1 do
|
for i := 0 to Count - 1 do
|
||||||
|
begin
|
||||||
Result := Result and lpfnEnum(HMONITOR(activeDspys[i]), 0, nil, dwData);
|
Result := Result and lpfnEnum(HMONITOR(activeDspys[i]), 0, nil, dwData);
|
||||||
|
if not Result then break;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCarbonWidgetSet.EnumFontFamilies(DC: HDC; Family: Pchar;
|
function TCarbonWidgetSet.EnumFontFamilies(DC: HDC; Family: Pchar;
|
||||||
|
@ -1331,9 +1331,12 @@ var
|
|||||||
Desktop: QDesktopWidgetH;
|
Desktop: QDesktopWidgetH;
|
||||||
begin
|
begin
|
||||||
Desktop := QApplication_desktop();
|
Desktop := QApplication_desktop();
|
||||||
for i := 0 to QDesktopWidget_numScreens(Desktop) - 1 do
|
|
||||||
lpfnEnum(i, 0, nil, dwData);
|
|
||||||
Result := True;
|
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;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user