Re: [fpc-pascal] HTTPS with fphttpclient

2017-08-30 Thread Michael Van Canneyt
On Tue, 29 Aug 2017, kristakis wrote: Hi, I'd like to make a request to a HTTPS address with TfpHTTPClient but am getting an unknown protocol error. I'm running fpc 2.6.4 on Rasbian 8 (Jessie) on a Pi 3. Here's the source code: You need version 3.0.2 or 3.0.0 for this to work. Michael.

[fpc-pascal] HTTPS with fphttpclient

2017-08-30 Thread kristakis
Hi, I'd like to make a request to a HTTPS address with TfpHTTPClient but am getting an unknown protocol error. I'm running fpc 2.6.4 on Rasbian 8 (Jessie) on a Pi 3. Here's the source code: program test2; {$mode objfpc}{$H+} uses fphttpclient; begin

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread Graeme Geldenhuys
On 2017-08-30 17:10, James Richters wrote: I think maybe email wrapping distorted my arc command so they didn't look right Here is the command I am sending broken down with comments: agg^.arc( (Drawinfo.gi*pixelscale+Draw_X_offset), {Cx} (Drawinfo.gj*pixelscale+Draw_Y_offset), {Cy}

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
Also I just do all my math in radians so I don’t' need to convert deg2rad() as in the examples. There is little point in converting everything to degrees just to convert it back to radians again. James -Original Message- From: fpc-pascal

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread Graeme Geldenhuys
On 2017-08-30 17:43, James Richters wrote: I can supply a complete sample program if it would help See Sample Program Attached Thank you, that should really help a lot is solving the issue. I'll take a look later tonight or tomorrow morning. Regards, Graeme -- fpGUI Toolkit - a

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
>Please get a fpGUI repository update so you have the latest AggPas from there. >I found a bug in Agg_2D's Arc() implementation, >and it didn't match the documentation's sample output. Yet the Agg2D's Arc() >worked correctly. I have updated from your fpGUI repository just now and it is

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread Graeme Geldenhuys
Hi James, On 2017-08-30 17:10, James Richters wrote: From the above, it seems you implemented your own Arc() procedure. Is that correct? No, it's the Agg2D Arc Function: http://www.crossgl.com/aggpas/documentation/#Arc Could you try using my version of AggPas and see how that goes for you.

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
>From the above, it seems you implemented your own Arc() procedure. Is that >correct? No, it's the Agg2D Arc Function: http://www.crossgl.com/aggpas/documentation/#Arc >Could you try using my version of AggPas and see how that goes for you. Yes I am using your version already >If there is a

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
>I can supply a complete sample program if it would help See Sample Program Attached James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters Sent: Wednesday, August 30, 2017 12:18 PM To: 'FPC-Pascal users discussions'

Re: [fpc-pascal] H2pas tool vs others, C header translation

2017-08-30 Thread el es
On 28/08/17 03:12, Paulo Costa wrote: > On 27-Aug-17 23:47, Dmitry Boyarintsev wrote: >> Is 2 neither true, nor false? 3? 4? >> >> If false is zero, >> Then true is not false. >> >> Also C doesn't have a boolean type per se. Iirc it was introduced in some >> version of c++ standard. >> >> In C

[fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
I'm having an issue with drawing Arcs with AggPas, and I can't quite put my finger on it... What's happening is that small arc segments are just not being drawn... they are not super tiny segments, they should end up being at least 100 pixels long, but they have a pretty big radius, but the