[fpc-pascal] FPC can't determine overloaded function to call

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Apr 28 16:29:51 CEST 2016


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



More information about the fpc-pascal mailing list