On 2016-04-28 14:02, Graeme Geldenhuys wrote: > ...snip... > P.DrawImage(25, 190, W div 2, H div 2, IDX); // this fails > > Yet this works > P.DrawImage(25, 190, Integer(W div 2), Integer(H div 2), IDX);
In this specific example, the following also works - and without the need for the Integer() casting. P.DrawImage(25, 190, W shr 1, H shr 1, IDX); Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal