|
List Info
Thread: help with XMoveWindow...
|
|
| help with XMoveWindow... |

|
2006-05-06 09:33:56 |
|
posts in this thread is correct ... the C code that is. The pascal
code would work, except I believe that the trouble is that the size
for the TSDL_SysWm type needs to be explicity set to 4 in SDL.PAS like so:
{$PACKENUM 4}
TSDL_SysWm = ( SDL_SYSWM_X11 ) ;
(or you could use {$Z4} or maybe even {$MINENUMSIZE 4})
For some reason, at that stage of the SDL.PAS unit, the size of
enumerated types is 1 byte. Somewhere in JEDI-SDL or in one of the
units it uses, the size of enumerated types is set to 1, but then
reset to 4 by the time your program code is run. At least this is the
case on FPC and my Linux system.
It would also help if the lock_ and unlock_func's in the TX11 record
are declared as so:
lock_func: procedure; cdecl;
unlock_func: procedure; cdecl;
rather than as untyped pointers.
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|