[fpc-pascal] Very slow startup of Frepascal programs on just one system

2018-08-22 Thread James
I am experiencing very slow startup of all of my freepascal programs for windows on just one computer. Normally they all start pretty much instantly, but I just got a brand new Dell XPS desktop computer and they are all starting up VERY slowly, even simple console programs.. Even 'Hello World'

Re: [fpc-pascal] Syntax changes suggestions

2018-07-23 Thread James Lee
On 7/21/2018 1:43 PM, Ben Grasset wrote: Shouldn't the attribute tags just be put wherever it's easiest for the compiler to deal with them? That would be bending the language to fit the implementation, when it should be the other way around. I think the vast majority of people care

Re: [fpc-pascal] math with infinity and NaN

2018-06-21 Thread James Richters
discussions Subject: Re: [fpc-pascal] math with infinity and NaN Zitat von James Richters : >> For operations producing results in floating-point format, the >> default result of an operation that signals the invalid operation >> exception shall be a quiet NaN that should provi

Re: [fpc-pascal] math with infinity and NaN

2018-06-21 Thread James Richters
- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of g...@wolfgang-ehrhardt.de Sent: Thursday, June 21, 2018 2:46 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] math with infinity and NaN Quoting James Richters : > SetExceptionMask(GetExceptionM

Re: [fpc-pascal] math with infinity and NaN

2018-06-21 Thread James Richters
>For operations producing results in floating-point format, the default result >of an operation that >signals the invalid operation exception shall be a quiet NaN that should >provide some diagnostic >information (see 6.2). If it shall be a quiet NaN doesn't that mean it would never cause the

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
... like ln(-1) or 0/0 why do some cause the exception and others do not? If someone wanted to volunteer time to adjust the math unit to always behave the same way, would it be something that would be accepted or is there some fundamental reason why it is like this? James -Original Message

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
>Please read the standard, exceptions are part of it. Not much of a 'standard' if it's full of exceptions so everyone just does it however they want and therefore nothing is actually standard. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
Is there a way to prevent getting the runtime error? James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Florian Klämpfl Sent: Wednesday, June 20, 2018 4:59 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] math

Re: [fpc-pascal] math with infinity and NaN

2018-06-20 Thread James Richters
/Infinity_Minus_Infinity.html James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Marco van de Voort Sent: Wednesday, June 20, 2018 9:21 AM To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] math with infinity and NaN In our previous episode

[fpc-pascal] math with infinity and NaN

2018-06-19 Thread James Richters
NaN was so you could evaluate complex formulas and NOT get a runtime error… Is this behavior just a bug that should be reported? Testing was done with V3.0.4 James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-

[fpc-pascal] Using constants instead of comments

2018-04-17 Thread James Richters
I have a whole section of diagnostic writeln's in a program, and it's tedious to comment them all out/in as needed. I'm curious if doing something like Const diagnosticdetail=false; If diagnosticdetail then Writeln('diagnostic info'); Is the same as // Writeln('diagnostic info'); And

Re: [fpc-pascal] Seek with text file

2018-04-03 Thread James Richters
Op 03-04-2018 13:58 schreef James Richters: > Thank you for the advice and for the example. I don't know what is considered > a large file.. these files can be maybe about 1000 lines long, most will be > less, would this solution be suitable for files of this size? > > Is Tstrin

Re: [fpc-pascal] Seek with text file

2018-04-03 Thread James Richters
Thank you for the advice and for the example. I don't know what is considered a large file.. these files can be maybe about 1000 lines long, most will be less, would this solution be suitable for files of this size? Is Tstringlist something like an array of strings? -Original Message-

[fpc-pascal] Seek with text file

2018-04-03 Thread James Richters
I am trying to figure out how I can remove the last line of a text file to replace it with a new one. I can do this with typed files with seek... but I am confused on how I could do this with just a text file. If I use: Var Myfile: Text; Mydata:String;

Re: [fpc-pascal] Proposal for new Free Pascal logo

2018-04-01 Thread James Richters
>I have written a few small windows type apps, but still prefer console. More >of the programming is for function instead of display. I also prefer ‘console’ but I prefer it for heavy graphical UI applications as well as functional types of programming.I cannot stand programs the try to

Re: [fpc-pascal] pas2js mailing list

2018-01-17 Thread James Richters
AB On 01/16/2018 12:52 PM, James Richters wrote: > Technically the anti-abuse field would produce the output of: Fatal Syntax > error, ";" expected but "identifier WRITELN" found > because there is no semicolon following the sample code. :DI guess maybe > it'

Re: [fpc-pascal] pas2js mailing list

2018-01-16 Thread James Richters
Technically the anti-abuse field would produce the output of: Fatal Syntax error, ";" expected but "identifier WRITELN" found because there is no semicolon following the sample code. :DI guess maybe it's after an if statement and before an else so it doesn't need a semicolon? Silliness

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

2018-01-10 Thread James Richters
> note that constants related to the windows 10 virtual terminal are not > defined in FPC yet. Correction: They were not added as of 3.0.4.rc1, they have been added now, not sure exactly which version they are/were included. James -Original Message- From: fpc-pascal [mailto:fpc-

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

2018-01-10 Thread James Richters
ere it still had Ansi Capability but not turned on by default anymore. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters Sent: Tuesday, January 09, 2018 10:28 PM To: 'FPC-Pascal users discussions' <fpc-pascal@lists

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

2018-01-09 Thread James Richters
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 Message- From: fpc-pascal [mai

[fpc-pascal] Freepascal Zip with Password?

2017-12-12 Thread James Richters
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] 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 :=

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

2017-11-11 Thread James Richters
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

[fpc-pascal] AggPas / PTCGraph dynamic memory allocation

2017-11-10 Thread James Richters
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 James ___ fpc-pascal

Re: [fpc-pascal] FPC Debug line numbers

2017-11-07 Thread James Richters
gured 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 <fpc-pascal@lists.freepascal.org> Su

[fpc-pascal] FPC Debug line numbers

2017-11-06 Thread James Richters
, 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 be incorre

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

2017-11-02 Thread James Richters
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 -Original Message

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] CRT unit and Windows' terminal

2017-10-16 Thread James Richters
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.zip

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

2017-10-15 Thread James Richters
ld 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 ___ fpc-pascal maillist - fpc-pasca

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

2017-10-14 Thread James Richters
nd 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: Binary data

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

2017-10-12 Thread James Richters
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

[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

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 - f

[fpc-pascal] Finding long file names

2017-10-04 Thread James Richters
' 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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

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

2017-09-26 Thread James Richters
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

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 ___ f

[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] Agg Pas Arcs

2017-08-30 Thread James Richters
ealize 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 Graeme Geldenhuys Sent: Wedne

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] 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.freepascal.org

Re: [fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
s: 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-pascal@lists.fr

[fpc-pascal] Agg Pas Arcs

2017-08-30 Thread James Richters
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 ___ fpc-pascal maillist - fpc-

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

2017-08-27 Thread James Richters
know 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] sending new parameters to existing instance

2017-08-27 Thread James Richters
, 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 - 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

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] Freepascal Floating Point Issue

2017-08-24 Thread James Richters
with 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 <fpc-pas

[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

[fpc-pascal] Freepascal Floating Point Issue

2017-08-21 Thread James Richters
xactly 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

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

2017-08-18 Thread James Richters
veness 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-

[fpc-pascal] FPC IDE generating Sig291

2017-08-11 Thread James Richters
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 IDE to any other method with FPC. James

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

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

2017-08-10 Thread James Richters
le 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

[fpc-pascal] Windows API SendMessage()

2017-08-09 Thread James Richters
. 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.freepascal.org http://lists.freepascal.org/cgi-bin

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-07-24 Thread James Richters
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

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-07-20 Thread james
, copy the image variable, draw the object in the copy, putimage() the copy to show the object, then when it's time to move it, putimage() the original back, then start the process over again in the next location. James ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Convert to int64 note

2017-07-14 Thread james
longer to process all formulas with int64 and double variables compared to using smaller variables, but then again processor speed is also very fast now, so should I even be bothered with it? I'm curious what the general method is now? James ___ fpc-

Re: [fpc-pascal] Convert to int64 note

2017-07-14 Thread james
;Int64" before doing > the subtract could prevent overflow errors. > > I get it a lot, but this is the line the above example is from: > > Last_GS:=G_End-(Max_Program_To_Display-1); > > Can someone please explain that this hint means and how I would convert the &

[fpc-pascal] Convert to int64 note

2017-07-13 Thread james
le is from: Last_GS:=G_End-(Max_Program_To_Display-1); Can someone please explain that this hint means and how I would convert the operands to "Int64" as recommended? James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list

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] Fixed record files

2017-07-09 Thread James Richters
,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 discussions &

[fpc-pascal] Fixed record files

2017-07-09 Thread James Richters
-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] If vs case or something else?

2017-07-07 Thread James Richters
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] If vs case or something else?

2017-07-06 Thread James Richters
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] 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

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-06-29 Thread James Richters
strInt( (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-28 Thread James Richters
... 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] 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] Running Freepascal programs on other computers

2017-06-28 Thread James Richters
indows-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 discussi

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

[fpc-pascal] Running Freepascal programs on other computers

2017-06-28 Thread James Richters
this 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] Implementing AggPas with PtcGraph

2017-06-26 Thread James Richters
to aggpas from scratch. 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-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-23 Thread James Richters
, 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, 120, 50); James

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

2017-06-23 Thread James Richters
d 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.freepascal

[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] 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

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-22 Thread James Richters
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-21 Thread James Richters
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.freepascal.org http://lists.freepascal.org/cgi-bi

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
} 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 ___ fpc-pascal

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 - fpc-

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
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 typmatic repeat rate? James ___ fpc-pascal maillist -

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-18 Thread James Richters
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 is. James -Original Message---

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-16 Thread James Richters
use); 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-16 Thread James Richters
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-15 Thread James Richters
equired. 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-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/mail

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

2017-06-15 Thread James Richters
ow 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-pasca

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] Implementing AggPas with PtcGraph

2017-06-15 Thread James Richters
d 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

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

2017-06-15 Thread James Richters
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
s' 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@lists.freepascal.org Subject: Re: [fpc-pascal] Impleme

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-15 Thread James Richters
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 Of Graeme Geldenhuys

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
eady 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-14 Thread James Richters
mit 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 Richters Sent: Wednesday, June 14, 2017 11:54 AM To: 'FPC-Pascal users discussions' &

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-14 Thread James Richters
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

<    1   2   3   4   5   6   7   8   >