From 7cf4dbd72681220a03eddef9feb6792f757c4648 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Tue, 14 Sep 2010 11:14:08 +0200 Subject: Fix variable types for XGetWindowProperty calls. We must use C-types and not Pascal-types. --- src/corelib/x11/fpg_x11.pas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/corelib/x11') diff --git a/src/corelib/x11/fpg_x11.pas b/src/corelib/x11/fpg_x11.pas index 3c11ca64..ea69e5f3 100644 --- a/src/corelib/x11/fpg_x11.pas +++ b/src/corelib/x11/fpg_x11.pas @@ -537,9 +537,9 @@ end; procedure ProcessSelection(var ev: TXEvent); var s: string; - actual: TAtom; - format: integer; - count, remaining: longword; + actualformat: TAtom; + actualtype: cint; + count, remaining: culong; data: PChar; begin if ev.xselection._property > 0 then @@ -548,7 +548,7 @@ begin ev.xselection._property, 0, 16000, TBool(false), // delete 0, // type - @actual, @format, @count, @remaining, + @actualformat, @actualtype, @count, @remaining, @data); s := data; @@ -838,7 +838,7 @@ var rootw: TfpgWinHandle; parentw: TfpgWinHandle; childs: ^TfpgWinHandle; - cnum: longword; + cnum: cuint; begin childs := nil; if XQueryTree(xapplication.display, wh, @rootw, @parentw, @childs, @cnum) <> 0 then -- cgit v1.2.3-70-g09d2