diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-02-27 22:37:13 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-03-07 22:44:09 +0200 |
commit | 9c788413df3c210bb8523a7b9e4fca14f9c7aacd (patch) | |
tree | 41b259fe416f927252132c3091238346a3a6f6ba /src/corelib | |
parent | 99f901436e7c0a46f68cc3b01b393fd3092f6c2f (diff) | |
download | fpGUI-9c788413df3c210bb8523a7b9e4fca14f9c7aacd.tar.xz |
Fixes compiler error due to change in xlib binary type definition.
This was a change introduced in FPC > v2.2.0
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/render/software/platform/linux/agg_platform_support.pas | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/corelib/render/software/platform/linux/agg_platform_support.pas b/src/corelib/render/software/platform/linux/agg_platform_support.pas index 0ba97803..c82fae89 100644 --- a/src/corelib/render/software/platform/linux/agg_platform_support.pas +++ b/src/corelib/render/software/platform/linux/agg_platform_support.pas @@ -67,6 +67,15 @@ uses agg_color_conv ,
file_utils_ ;
+const
+ {$IFDEF Ver2_2}
+ xFalse = False;
+ xTrue = True;
+ {$ELSE}
+ xFalse = 0;
+ xTrue = 1;
+ {$ENDIF}
+
{ TYPES DEFINITION }
const
//----------------------------------------------------------window_flag_e
@@ -1551,7 +1560,7 @@ begin m_specific.m_window_attributes.background_pixel:=
XWhitePixel(m_specific.m_display ,m_specific.m_screen );
- m_specific.m_window_attributes.override_redirect:=false;
+ m_specific.m_window_attributes.override_redirect:=xfalse;
window_mask:=CWBackPixel or CWBorderPixel;
|