mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 10:39:08 +02:00
CustomDrawn: Fix compilation of CustomDrawn X11. Issue #37813, patch from Sven Barth.
git-svn-id: trunk@63924 -
This commit is contained in:
parent
0d1f1cb778
commit
5779a01102
@ -39,6 +39,9 @@
|
||||
{$if defined(CD_WINDOWS)}
|
||||
//{$define CD_UseNativeText}
|
||||
{$endif}
|
||||
{$if defined(CD_X11)}
|
||||
{$define CD_UseNativeMonitors}
|
||||
{$endif}
|
||||
|
||||
// ==================
|
||||
// Other options
|
||||
|
@ -1508,11 +1508,13 @@ begin
|
||||
System.EnterCriticalsection(ACritSec^);
|
||||
end;
|
||||
|
||||
{$ifndef CD_UseNativeMonitors}
|
||||
function TCDWidgetSet.EnumDisplayMonitors(hdc: HDC; lprcClip: PRect;
|
||||
lpfnEnum: MonitorEnumProc; dwData: LPARAM): LongBool;
|
||||
begin
|
||||
Result := lpfnEnum(1, 0, nil, dwData);
|
||||
end;
|
||||
{$endif}
|
||||
|
||||
(*
|
||||
function CharsetToQtCharSet(const ALCLCharset: Byte): QFontDatabaseWritingSystem;
|
||||
@ -2901,6 +2903,8 @@ begin
|
||||
Result := 0;
|
||||
end;
|
||||
*)
|
||||
|
||||
{$ifndef CD_UseNativeMonitors}
|
||||
function TCDWidgetSet.GetMonitorInfo(Monitor: HMONITOR; lpmi: PMonitorInfo): Boolean;
|
||||
begin
|
||||
Result := (lpmi <> nil) and (lpmi^.cbSize >= SizeOf(TMonitorInfo)) and (Monitor = 1);
|
||||
@ -2909,6 +2913,7 @@ begin
|
||||
lpmi^.rcWork:=lpmi^.rcMonitor;
|
||||
lpmi^.dwFlags := MONITORINFOF_PRIMARY
|
||||
end;
|
||||
{$endif}
|
||||
(*
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TQtWidgetSet.GetDeviceSize
|
||||
|
Loading…
Reference in New Issue
Block a user