Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-05-31 Thread James Richters
ect end; for x := 0 to ImageWidth - 1 do for y := 0 to ImageHeight - 1 do begin pixelcolor:=(getBufItemAsbyte(2) shl 12)+(getBufItemAsbyte(1) shl 8) +(getBufItemAsbyte(0) shl 4)+getBufItemAsbyte(3); putpixel(x,y,pixelcolor); end; James -Original Message

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-05-31 Thread James Richters
27;s what it seems to be if ptcgraph is put in a 16bit color mode. It doesn't seem to be able to go any higher than that, but that's fine for my purposes. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-05-31 Thread James Richters
>And AggPas already has support for that pixel format How do I define that as the format I want? I've been looking all through the example and do not see how this is defined. I've attached a test program, it's basically Graeme's sample but going to screen instead of a file. I just don't see

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-02 Thread James Richters
le to use a nested loop and putpixel() but that is very slow. I still think something is missing with putimage because I don't see how it knows the shape of the image, maybe I need to actually do a getimage() at some point to set the shape of before putimage will work.. I'll

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-04 Thread James Richters
t because I would like to figure out what I will need to do on my target installations where freepascal will not be installed. Any ideas on what causes this error and advice on how to install what is needed on client (non-development) systems? James -Original Message- From: fpc-pasca

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-05 Thread James Richters
ccrt, Sysutils, Fpimage, Fpwritepng, Agg_2d, Agg_Basics James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Graeme Geldenhuys Sent: Monday, June 05, 2017 2:25 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Implementi

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-06 Thread James Richters
.wikipedia.org/wiki/Dependency_Walker). On linux you can just use ldd. Hope this helps, Stefan On 06/05/2017 05:00 PM, James Richters wrote: >> As for font support under Windows. Yes you can use GDI for font rendering, >> but I highly recommend using freetype.dll even under Windows. &

Re: [fpc-pascal] ptccrt missing keys

2017-06-12 Thread James Richters
o do I need to enable them somehow? I haven't tried compiling this yet, I'm still using r715. I thought I would ask if it was ready first. Thanks, James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Nikolay Nikolov Sent:

Re: [fpc-pascal] ptccrt missing keys

2017-06-12 Thread James Richters
get there, maybe in a few week's time I will be happy to be patient 😊 Thank you for all your hard work on this! James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Nikolay Nikolov Sent: Monday, June 12, 2017 6:56 PM To: fpc-pas

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
he right 5 bits 11 positions to the left and flipping the Y axis, but I can only do that with putpixel and a nested loop, which is quite a bit slower than putimage. Any ideas how I can build the data correctly so putimage will work? James ___

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
tes matching up I still have not figured out how to switch red and blue bits around so putimage() will work. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters Sent: Tuesday, June 13, 2017 12:43 PM To: 'FPC-Pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
re swapped, you can do all your drawing with >colors there R and B are switched. It sounds like it would be easier to figure out option 1. That may also be better for compatibility if aggpas is updated in the future to be more compatible with ptcgraph. James -Original Message

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
n the compile command line, the program runs as expected. Since Stefan said he compiled 64bit versions of the example program and it worked, I wonder why I am having this issue. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
sive. Again, if your program hangs for some reason, a >debugger may come in handy. I had the color set to blue, I get the blue rectangles, but there is this huge delay (6 seconds) in the x64 version but no delay in the win32 version. The black screen was before I inserted the rectangles

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
>Noting your problems with compilation, you may want to consider using Lazarus >IDE as well. I have just installed Lazarus but still can't get the aggpas_ptcgraph_output.pas sample program to run when compiled for x64. Here is what I have done. Downloaded and installed lazarus-1.6.0-fpc-3.0.0

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
ross compile for win64 and it works. I wonder if this is an issue with Freepascal 3.0.2, and aggpas hasn't been fixed for it yet and I need to use Freepascal 3.0.1 to get it to work? James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-13 Thread James Richters
so from there I can compile x64 programs, then install lazarus-1.6.4-fpc-3.0.2-cross-i386-win32-win64.exe so I can also compile Win32 programs with Lazarus. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters Sent:

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
ss thing (it wouldn't be the first). Can you just email me the exe file zipped and l'll just try to run it here? Then I will know if it's a compiler issue or an OS issue James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
Thanks for all the info, I will try to get it working. >I assume you mean the executable of the ptcgraph+aggpas demo? I'll do so in a >private email. Yes, please. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/c

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
me you mean the executable of the ptcgraph+aggpas demo? I'll do so in a >private email. Thanks for mailing the demo executable. I'm happy to report that it does run fine on my system as well (Windows 10 x64) So there must be something different in the way

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
enhuys Sent: Wednesday, June 14, 2017 8:29 AM To: fpc-pascal@lists.freepascal.org Cc: James Richters Subject: Re: [fpc-pascal] Implementing AggPas with PtcGraph On 2017-06-14 11:57, James Richters wrote: > I've downloaded the zip file and extracted it to H:\FPC64. But now > I have

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
gui yet, I thought I would just ask first James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
modify a unit to make it work.I'm not sure where the proper place is to submit things like this, but I would be happy to contribute these changes if possible. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richter

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
maybe some of these things are fixed already Thank you for the help with this. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-15 Thread James Richters
be not easy to implement... I suppose it probably compiles all the units first then the main program, so putting anything in the main program wouldn't be seen until it was too late. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf O

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-15 Thread James Richters
ing with reference to 'projects' is that a Lazarus thing? How are 'projects' defined? James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Mattias Gaertner Sent: Thursday, June 15, 2017 6:55 AM To: fpc-pascal@list

[fpc-pascal] X64 only - Can't determine which overloaded function to call

2017-06-15 Thread James Richters
with: fpc -Px86_64 testit.pas Any ideas about this? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-15 Thread James Richters
o not be there anymore. Using a custom cfg with this method would allow the changes to be kept separate and be a more obvious reminder that they need to happen. Can I add the custom config into the IDE someplace? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2017-06-15 Thread James Richters
/downloads/inpout32/ James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] X64 only - Can't determine which overloaded function to call

2017-06-15 Thread James Richters
;t know why this particular combination is a problem. I just now also tried LY:=Round(-(BYA+SYA)+30); //works both Win32 and Win64 Which is exactly the same thing as LY:=Round(30-(BYA+SYA)); //Does not work Win64 James -Original Message- From: fpc-pascal [mailto:fpc-

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-15 Thread James Richters
don't have time to do a massive re-write all at once, and FreePascal let me drop in my Turbo Pascal programs and pretty much just run them. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-15 Thread James Richters
endencies are required. Sound like I was using the correct unit anyway for my console apps James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-16 Thread James Richters
lso wondering if there is a way to specify the font by the name used by windows applications, or is that more complicated than it is really worth? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-16 Thread James Richters
;; Writeln(Font2use); agg^.Font(font2use ,45 ); .. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-18 Thread James Richters
. instead it was just re-reversed to compensate for the error in agg_color.pas. My point here is that it may be too late to just correct it now, because then everyone who has programs that already 'fix' the problem will then all be wrong, so I'm not sure what the best way to fix this

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-20 Thread James Richters
s up making a mess of everything. Better off to just fix it then fix any programs as needed instead of having an even bigger and more confusing mess that no one will remember why it's like that in 5 years. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ptccrt missing keys

2017-06-21 Thread James Richters
ic keyboard rate. I wish it to be much faster than it is. I seem to remember that on DOS systems there was a way to set it, but on windows systems the only thing I can find is a control panel setting, which I maxed out but it's still not fast enough. Is there a way to override the typm

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
>The 2 part directory names is because other Canvas renderers will and >can be added to fpGUI. Yes the directory structure makes more sense if there will be other rendering options and render/aggpas/ also makes more sense than render/software for the same reason.

Re: [fpc-pascal] ptccrt missing keys

2017-06-21 Thread James Richters
>we've always set that in the BIOS of the machine... it is generally in the >same area where you would toggle the numlock on at boot... Thanks for the suggestion! I did not even think to look there. James ___ fpc-pascal maillist -

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
to console } surface.copy(console, area, area); send the changes to the screen. I'm wondering if I can have aggpas work with the ptcgraph buffer directly, and maybe this would be more efficient than putimage() Any ideas? James ___

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
I was trying to find putimage to see how it worked... and I came across some notes about it in graph.inc as follows: { For significant speed improvements , is is recommended } { that these routines be hooked (otherwise the default, } { slower routines will be used) :} .

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
ady has the array position and the fact that something changed available. If I had to analyze the buffer separately and create the 'pixels changed' array, it would take too long. James ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-22 Thread James Richters
tead of 1.056s maybe I did something wrong. Here is what I did: https://github.com/Zaaphod/ptcpas/compare/Restructure_PutImage_Loop#diff-fb31461e009ff29fda5c35c5115978b4 maybe the two inc(pdest); inc(psrc); inside the inner loop are slower than the inc(k)? James __

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-22 Thread James Richters
(k,deltaX1); End; End; .. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Can't close and reopen ptcgraph

2017-06-23 Thread James Richters
up. test program is below. If I comment out ptcgraph and ptccrt and uncomment graph and wincrt, it works as expected. James program ReOpenGraph.pas; {$mode objfpc}{$H+} uses ptcgraph,ptccrt; // graph,wincrt; var gd,gm : smallint; begin gd:=d8Bit; gm:=m800x600

Re: [fpc-pascal] Can't close and reopen ptcgraph

2017-06-23 Thread James Richters
around by just hiding the window with ShowWindow(graphwindow,SW_hide); To get back to my console window, then when needed I can clear it and show it again with. ShowWindow(graphwindow,SW_show); James ___ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-23 Thread James Richters
ineColor(155, 0, 0, 255); agg^.line(60, 10, 60, 50); agg^.lineto(100,50); //no line drawn here agg^.lineColor(0, 0, 155, 255); agg^.moveto(100, 10); agg^.lineto(100,50);//no line drawn here agg^.lineColor(155, 0, 155, 255); agg^.line(120, 10, 1

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-23 Thread James Richters
> lineto is meant to be used multiple times, as part of a draw path. So, lineto > does not really draw, >it just adds a vertex to a vertex storage object. To draw a path, you need to >use the drawPath(option): Thank you for the information! I thought I was missing somet

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-26 Thread James Richters
e and offset to aggpas from scratch. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Running Freepascal programs on other computers

2017-06-28 Thread James Richters
is is normally achieved, and how to implement this with my freepascal console applications? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can't close and reopen ptcgraph

2017-06-28 Thread James Richters
I thought I would try to get my demo program to work. When I try to compile it with //manually create the ptcwrapper thread PTCWrapperObject := TPTCWrapperThread.Create; I get reopengraph.pas(32,23) Error: Identifier not found "TPTCWrapperThread" Demo program below... Any ide

Re: [fpc-pascal] Running Freepascal programs on other computers

2017-06-28 Thread James Richters
igning-a-windows-exe-file Thank you for the link, that does help explain things and gets me pointed in the right direction. James From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Snorkl e Sent: Wednesday, June 28, 2017 1:51 PM To: FPC-Pascal users discu

Re: [fpc-pascal] Can't close and reopen ptcgraph

2017-06-28 Thread James Richters
>add ptcwrapper to uses list. Thank you, that worked! James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-28 Thread James Richters
ar how it would get from 5 or 6 bits up to 8 bits per color... but if it's already available somewhere I might as well use what's done already. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-29 Thread James Richters
color.ConstrInt( (p^ shr 8 ) and $F8 , (p^ shr 3 ) and $FC , (p^ shl 3 ) and $F8 ); end; James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-29 Thread James Richters
I defined a static array to convert the mode 13h VGA palette to separate red, green and blue to send to aggpas as well as the packed RGB565 format needed to send to ptcgraph 16bit colors. James Type VGARGBRec= Record R,G,B:Byte; RGB:Word; end; Const VGA256: Array[0..255

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-07-04 Thread James Richters
I defined a static array to convert the mode 13h VGA palette to separate red, green and blue to send to aggpas as well as the packed RGB565 format needed to send to ptcgraph 16bit colors. James Type VGARGBRec= Record R,G,B:Byte; RGB:Word; end; Const

[fpc-pascal] If vs case or something else?

2017-07-06 Thread James Richters
g out it could have been better another way. Any other ideas on how to handle this? Any advice on this is greatly appreciated James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] If vs case or something else?

2017-07-07 Thread James Richters
input and figure out what to do based on the string value and it seems this would save a lot of time. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Fixed record files

2017-07-09 Thread James Richters
p file, then re-writing the entire new file in the desired order? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Fixed record files

2017-07-09 Thread James Richters
,GX,GY,GZ,GI,GJ,R,SA,EA:Double; End; I don't understand "packed record" could you elaborate? James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Ched Sent: Sunday, July 09, 2017 12:01 PM To: FPC-Pascal users di

Re: [fpc-pascal] Fixed record files

2017-07-09 Thread James Richters
GC: Word; PX,PY,PZ,GX,GY,GZ,GI,GJ,R,SA,EA:Double; End; {$PackRecords default} Or am I not understanding this correctly? James From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Vojtech CihƔk Sent: Sunday

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-07-24 Thread James Richters
ch Here's the link: https://github.com/Zaaphod/ptcpas/commit/b96f7208f079d4e2fe208ba5ac464f8f6808d79b https://github.com/Zaaphod/ptcpas/tree/Compiled James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Windows API SendMessage()

2017-08-09 Thread James Richters
to force terminate the program. sleep(1); Writeln('Turning On Display'); SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, -1); Writeln('Display is On'); End. James ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] Windows API SendMessage()

2017-08-10 Thread James Richters
yboard input, but I haven't been able to get them to work in a freepascal console application. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Windows API SendMessage()

2017-08-11 Thread James Richters
does not wake the display Simulating the Keyboard with Keybd_Event(VK_Shift,1,0,0); does wake up the display James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FPC IDE generating Sig291

2017-08-11 Thread James Richters
nd once it gets in this mood it happens constantly until I exit it and restart it, then it acts normal again, letting me click to position the cursor without error. Does anyone have any idea what might be causing this? I really prefer the text

Re: [fpc-pascal] Pascal support in the Kattis educational site

2017-08-18 Thread James Richters
effectiveness of documentationetc. the best program isn't necessarily the one that executes fastest... Which is a 'better' program: program A that executes in 0.00018s that uses 1MB of RAM or Program B that executes in 0.00016s that uses 100MB of RAM James ___

[fpc-pascal] Freepascal Floating Point Issue

2017-08-21 Thread James Richters
t have variables retain exactly what they are set to, not something close Thanks James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] ExtractRelativePath() not always returning expected result

2017-08-24 Thread James Richters
to "C:\FPC\3.0.2" via "3.0.2" > // Shouldn’t this be ā€œā€ since we are already >there? >From "C:\FPC\3.0.2" to "C:\FPC\3.0.4rc1" via "3.0.4rc1" &g

Re: [fpc-pascal] Freepascal Floating Point Issue

2017-08-24 Thread James Richters
the benefit that one could do things like exact conditionals and get the expected result James From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Sven Barth via fpc-pascal Sent: Tuesday, August 22, 2017 1:55 AM To: FPC-Pascal users discussions Cc: Sven Barth

Re: [fpc-pascal] ExtractRelativePath() not always returning expected result

2017-08-24 Thread James Richters
ing / in the examples to make it clear they are needed. None of the sample test cases have trailing / or \ I am curious about this though: From "/pp/src/compiler/" to "/pp/bin/win32/ppc386/" via "..\..\bin\win32\ppc386\" Shouldn't the output use / since / was used in both the source and destination not \ ? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ExtractRelativePath() not always returning expected result

2017-08-24 Thread James Richters
>Can you please file a bugreport for that, so I will not forget it ? Done. >The default for the OS is used; This is by design. That makes sense for most cases but is there / could there be a way to override this? I normally write programs for Windows, however I've had to write out the Linux Sl

[fpc-pascal] sending new parameters to existing instance

2017-08-27 Thread James Richters
s way, just loading the new file into the existing instance, but I'm not familiar enough with how this is done. Could someone please point me in the right direction on how this is typically done? James ___ fpc-pascal maillist -

Re: [fpc-pascal] sending new parameters to existing instance

2017-08-27 Thread James Richters
ow what it was called. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
el Does anyone know what's going on with this? It seems like the kind of thing where some internal calculation does not have enough precision, or something is overflowing.. but it's strange that ArcTo always works to draw the same exact arc. James __

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
rd coded numbers: agg^.arc( -600470.258096880350, {Cx} 168254.083748858280, {Cy} 624074.001867781300, {Rx} 624074.001867781300, {Ry} 6.011216001395, {Start} 6.010880670454 {Sweep} ); Thanks for the help with this James ___ fpc-pascal maillist - fpc-

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 [mailto:fpc-pascal-boun...@lists.freepasca

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 dis

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
or your evaluation. I realize Arcto() and Arc() work differently, but the Arc I am trying to display is a valid Arc segment with either method. Thank you for your help with this James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of

[fpc-pascal] Syntax to select constant or variable with function call

2017-09-23 Thread James Richters
I have several Similar arrays as follows for translating various color schemes into RGB565, I currently have 5 arrays but may add more. ACI256: Array[0..255] of VGARGBRec = ( (R:$00; G:$00; B:$00; RGB:$), //[ 0] (R:$FF; G:$00; B:$00; RGB:$F800), //[ 1] (R:$FF; G:$FF;

Re: [fpc-pascal] Syntax to select constant or variable with function call

2017-09-24 Thread James Richters
aximum element in the for loop? > The loop can still be optimized, but that is another topic. Please elaborate, how this loop could be optimized? I've been trying to think of ways to improve it, and suggestions would be most welcome. James

Re: [fpc-pascal] Syntax to select constant or variable with function call

2017-09-25 Thread James Richters
e); > The loop can still be optimized, but that is another topic. Please elaborate, I would be very interested in how this could be optimized. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/c

[fpc-pascal] PTCGraph: Monitor, Orientation and Size Selection

2017-09-26 Thread James Richters
hat is totally not a standard resolution. Are there ways of doing these things that I just am not aware of? Thanks James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Finding long file names

2017-10-04 Thread James Richters
This.is.a.TEST.tap it correctly returns '.tap' as the extension. Maybe findfirst is an obsolete way of listing the files?Or maybe it just never got fixed to handle valid files with more than one period? Any thoughts on this? James ___

Re: [fpc-pascal] Finding long file names

2017-10-06 Thread James Richters
function and it’s working great now! I thought I took care of all the Dos limitations over a year ago, but I missed this one. Thanks for the help, knowing it was working for someone else got me to the problem. James ___ fpc-pascal maillist

[fpc-pascal] Obtain file size?

2017-10-06 Thread James Richters
looking for. I’ve been looking through the sysutils reference here: https://www.freepascal.org/docs-html/rtl/sysutils/index-5.html and I see disk size, but not file size… Could someone please point me in the right direction? James

[fpc-pascal] Getting reason for failure with SendToRaw()

2017-10-12 Thread James Richters
mail that would give me an error code? I'm running from a single thread console application. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-13 Thread James Richters
ing a solution can be found as I have reports I display in console windows, even on my graphics programs that would be so much nicer if I could use box characters again, since I make use of the console window while the graphics window is also open. James ascii box.pas Description: Bin

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-15 Thread James Richters
he CRT unit use Unicode, then it should do that Correctly, which it does not. Whether CRT is using Extended ASCII or Unicode, as far as I can figure out, it's impossible to display box characters with the CRT unit at all. James

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-16 Thread James Richters
ke my links with spaces in them, so I made an index link with all the links and a zip file with all test programs and screen shots. Index File http://www.productionautomation.net/FPC/ASCII/index.htm Zip file http://www.productionautomation.net/FPC/ASCII/BoxCharacters.zi

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-17 Thread James Richters
I’ve entered a bug report on this here: https://bugs.freepascal.org/view.php?id=32558 James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC install on windows with limited rights

2017-11-02 Thread James Richters
path like ..\..\FPC\3.0.4rc1\bin\FPC %1 %2 %3 %4 It's just something I always have done since turbo pascal, which I also never installed, just copied the TP directory wherever I wanted to run it. Anyway.. I run FPC all over the place and never "install" it. James -Origin

[fpc-pascal] FPC Debug line numbers

2017-11-06 Thread James Richters
ine number, which makes it very difficult to figure out exactly what part of the function had the problem. I am using FPC 3.0.4rc1, compiling with the text IDE and I have option "Generate also backtrace line information" selected. Does anyone know what might cause the line numbers to

Re: [fpc-pascal] FPC Debug line numbers

2017-11-07 Thread James Richters
I have not figured out what causes it to be anything but exact yet. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of FlƔvio Etrusco Sent: Monday, November 06, 2017 8:10 PM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal

[fpc-pascal] AggPas / PTCGraph dynamic memory allocation

2017-11-10 Thread James Richters
se now graph_buffer isn't an array anymore... so what I have won't work and I haven' figured out how to attach AggPas at a position where the bitmap data is so I can use PutImage and still have the Longints that were put in by GetImage. Any advice is greatly appreciated Ja

Re: [fpc-pascal] AggPas / PTCGraph dynamic memory allocation

2017-11-11 Thread James Richters
l; aggclock^.Text(2 ,19,FormatDateTime('hh:nn:ssam/pm',Now)); Putimage((GetMaxX-4)-Clock_W, 4, Clockbuffer_With_Time^ , normalPut); End; until KeyPressed; End. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] AggPas / PTCGraph dynamic memory allocation

2017-11-13 Thread James Richters
>> ClockBuffer_With_Time:=ClockBuffer_original; > >That seems fine. > >> AggClockbuffer^:=ClockBuffer_With_Time^+3*Sizeof(Longint); //Set >> AggClockBuffer to be 3 Longints past ClockBuffer_with_time > >This seems wrong. Try changing that to the following: > > AggClockbuffer := ClockBuff

[fpc-pascal] Freepascal Zip with Password?

2017-12-12 Thread James Richters
be able to make my application just create it and not need the user to install 7zip or something else. James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Problems with writing to console

2018-01-09 Thread James Richters
ous redirects and it will be clear what is redirected and what isn't It also shows writing things to stderr then using gotoxy32 to write over it so it won't even show up on the screen. If the program is run without redirection. (set wait4key to false to see this) James -Original Mess

<    1   2   3   4   5   6   7   8   9   >