summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-02-27 22:37:13 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-07 22:44:09 +0200
commit9c788413df3c210bb8523a7b9e4fca14f9c7aacd (patch)
tree41b259fe416f927252132c3091238346a3a6f6ba /src/corelib
parent99f901436e7c0a46f68cc3b01b393fd3092f6c2f (diff)
downloadfpGUI-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.pas11
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;