should that be Find_Color:=BestChoice; ??
Yes, it should be, Also noticed a typo in my groupings, it wouldn't
affect anything but I like to make it clear.
So now I have this for the function:
function Find_Color(Constref ColorArray :TVGA256Array; R ,G ,B : Word) : Byte;
Var
Dist,Closest:D
Am 24.09.2017 um 14:50 schrieb Sven Barth via fpc-pascal:
> Please report a bug.
Well this is awkward - I tried to provide a test project for the report, and
couldn't get it to *not* work. The real-world project that has this issue for me
has the resource included from a file in a package, and it
> Also note that that is only true for Windows. FPC doesn't include a
> resource compiler for any other platforms. So if no resource compiler
> exists, you will get a compilation error until you make other plans.
AFAIK, windres is available for lots of other platforms. If you have to install
som
On 9/24/2017 12:07 PM, James Richters wrote:
> Thank you for explaining how to achieve this.
> I am curious about the meaning behind the prefixes you used:
>> TVGA256Array = Array[0..255] of VGARGBRec;
>> PVGA256Array = ^TVGA256Array;
> Do the T and P in front of VGA256Array have a special me
On 24.09.2017 22:55, Graeme Geldenhuys wrote:
> On 2017-09-24 19:02, Sven Barth via fpc-pascal wrote:
>>> system if you want to use it as a linker, fpc does not provide it.
>> Exactly.
>
> Exactly my point! Why? Why does the official FPC installer for Windows
> give a more workable solution out of
On 24.09.2017 21:07, James Richters wrote:
> Thank you for explaining how to achieve this.
> I am curious about the meaning behind the prefixes you used:
>> TVGA256Array = Array[0..255] of VGARGBRec;
>> PVGA256Array = ^TVGA256Array;
> Do the T and P in front of VGA256Array have a special mean
On 2017-09-24 19:02, Sven Barth via fpc-pascal wrote:
system if you want to use it as a linker, fpc does not provide it.
Exactly.
Exactly my point! Why? Why does the official FPC installer for Windows
give a more workable solution out of the box (1), but official
installers for other platfor
Thank you for explaining how to achieve this.
I am curious about the meaning behind the prefixes you used:
> TVGA256Array = Array[0..255] of VGARGBRec;
> PVGA256Array = ^TVGA256Array;
Do the T and P in front of VGA256Array have a special meaning or significance?
I see things like that all
Am 24.09.2017 18:14 schrieb "Giulio Bernardi" :
>
> I think that what Sven meant is that fpc's Windows installers include
binutils,
> while this is not true for other platforms: that is, you need to have ld
on your
> system if you want to use it as a linker, fpc does not provide it.
Exactly.
Rega
I think that what Sven meant is that fpc's Windows installers include binutils,
while this is not true for other platforms: that is, you need to have ld on your
system if you want to use it as a linker, fpc does not provide it.
Same as for windres: if you need it, usually you can install it from m
On 2017-09-24 16:49, Sven Barth via fpc-pascal wrote:
Because it's only Windows that we provide a setup for.
Huh? I've been downloading the official FPC console installers for
FreeBSD and Linux since 6 years ago. I never use distro packages
managers for FPC.
Regards,
Graeme
--
fpGUI To
On 24.09.2017 17:15, Graeme Geldenhuys wrote:
> On 2017-09-24 13:50, Sven Barth via fpc-pascal wrote:
>> You are aware that FPC supports resources on basically all platforms?
>
> I know that. What I meant is that FPC only ships with a Windows resource
> compiler - ability to compile RC files to RE
On 2017-09-24 13:50, Sven Barth via fpc-pascal wrote:
You are aware that FPC supports resources on basically all platforms?
I know that. What I meant is that FPC only ships with a Windows resource
compiler - ability to compile RC files to RES files. All other platforms
you have to find your o
On 09/24/2017 01:55 AM, Michael Van Canneyt wrote:
Then define
function Find_Color(anArray :PVGA256Array; r ,g ,b : Word) : Byte;
Var
Dist,closest:Double;
i,bestchoice:Byte;
begin
Closest:=20;
For i:= 0 to 255 do
Begin
Dist := ((R-AnArray^[i].R))*((R-AnArray
On 23.09.2017 22:31, Martok wrote:
> Hi all,
>
> the $R directive accepts resource scripts (RC) and compiles the RES file from
> it
> on demand.
>
> However, that only happens if the RES file does not exist - if it does, the
> resource compiler is never invoked. Even clean-building the unit from
On 24.09.2017 12:12, Graeme Geldenhuys wrote:
> On 2017-09-23 21:31, Martok wrote:
>> the $R directive accepts resource scripts (RC) and compiles the RES
>> file from it
>> on demand.
>
> Also note that that is only true for Windows. FPC doesn't include a
> resource compiler for any other platform
On 2017-09-23 21:31, Martok wrote:
the $R directive accepts resource scripts (RC) and compiles the RES file from it
on demand.
Also note that that is only true for Windows. FPC doesn't include a
resource compiler for any other platforms. So if no resource compiler
exists, you will get a compi
17 matches
Mail list logo