diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-20 07:01:59 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-20 07:01:59 +0000 |
commit | 52afba6368b154c50469439c55160f2f21c01c64 (patch) | |
tree | dc94fee1eab2ab4e7d840a3f16df4270176cf094 /src/corelib/x11 | |
parent | b1881506db03ae8c30647ad6812d26348b6e3f3a (diff) | |
download | fpGUI-52afba6368b154c50469439c55160f2f21c01c64.tar.xz |
* CoreLib: Some minor code cleanup, removing unused variables and code comments.
Diffstat (limited to 'src/corelib/x11')
-rw-r--r-- | src/corelib/x11/gfx_x11.pas | 46 |
1 files changed, 7 insertions, 39 deletions
diff --git a/src/corelib/x11/gfx_x11.pas b/src/corelib/x11/gfx_x11.pas index 76b6f1ff..9f2d7c55 100644 --- a/src/corelib/x11/gfx_x11.pas +++ b/src/corelib/x11/gfx_x11.pas @@ -13,12 +13,10 @@ uses Xlib, XUtil, x11_xft, -// x11_keyconv, gfxbase, gfx_impl; type -// TfpgWinHandle = TXID; TfpgGContext = Xlib.TGc; type @@ -94,7 +92,6 @@ type FClipRect: TfpgRect; FClipRectSet: boolean; FXftDraw: PXftDraw; - FXftDrawBuffer: PXftDraw; FColorTextXft: TXftColor; FClipRegion: TRegion; FPixHeight, @@ -202,8 +199,6 @@ uses fpgfx, gfx_widget, {$Note This dependency to gfx_widget must be removed.} gui_form, // remove this!!!!! - xatom, - gfx_utf8utils, _netlayer, cursorfont, gfx_popupwindow; @@ -211,13 +206,13 @@ uses var xapplication: TfpgApplication; -const +//const // map X11 event types to custom event types - MSG_SCROLL = 65; - MSG_RESIZE = 66; - MSG_POPUPCLOSE = 67; - MSG_MOVE = 68; - MSG_DOUBLECLICK = 69; +// MSG_SCROLL = 65; +// MSG_RESIZE = 66; +// MSG_POPUPCLOSE = 67; +// MSG_MOVE = 68; +// MSG_DOUBLECLICK = 69; // some externals @@ -490,7 +485,6 @@ var n: integer; s: string; pc: PChar; - fl: TStringList; begin pfs := XftListFonts(Display, DefaultScreen, [FC_SCALABLE, FcTypeBool, 1, 0, FC_FAMILY, 0]); @@ -517,8 +511,6 @@ begin end; constructor TfpgApplicationImpl.Create(const aparams: string); -var - wa: TXWindowAttributes; begin FIsInitialized := False; FDisplay := XOpenDisplay(PChar(aparams)); @@ -635,25 +627,14 @@ procedure TfpgApplicationImpl.DoWaitWindowMessage(atimeoutms: integer); var ev: TXEvent; NewEvent: TXevent; - n: integer; i: integer; r: integer; - i2: integer; - ks: integer; - uc: word; - a: array[1..16] of char; - ss: integer; - sr: integer; - p: PChar; blockmsg: boolean; - b: boolean; w: TfpgWindowImpl; ew: TfpgWindowImpl; kwg: TfpgWidget; wh: TfpgWinHandle; wa: TXWindowAttributes; - px: integer; - py: integer; mcode: integer; msgp: TfpgMessageParams; rfds: TFDSet; @@ -1020,7 +1001,6 @@ var wh: TfpgWinHandle; attr: TXSetWindowAttributes; mask: longword; - bcolor: longword; hints: TXSizeHints; begin if FWinHandle > 0 then @@ -1139,7 +1119,7 @@ function TfpgWindowImpl.DoWindowToScreen(ASource: TfpgWindowBase; const AScreenP var dx: integer; dy: integer; - cw : TfpgWinHandle; + cw: TfpgWinHandle; begin // if not HandleIsValid then // Exit; //==> @@ -1197,29 +1177,17 @@ end; procedure TfpgWindowImpl.DoSetWindowTitle(const atitle: string); var - //s: string; - //p: PByte; netlayer: TNETWindowLayer; begin if FWinHandle <= 0 then Exit; - //s := atitle; - - //if length(s) > 0 then - //p := @s[1] - //else - //p := nil; - netlayer := TNETWindowLayer.Create(xapplication.display); try netlayer.WindowSetName(FWinHandle, PChar(ATitle)); finally netlayer.Free; end; - -// XChangeProperty(xapplication.display, FWinHandle, 39, 31, 8, 0, p, length(s)); -// XChangeProperty(xapplication.display, FWinHandle, 37, 31, 8, 0, p, length(s)); end; constructor TfpgWindowImpl.Create(AOwner: TComponent); |