[fpc-pascal] Resource compilation

2017-09-23 Thread Martok
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 source does not recompile the resource file. This i

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

2017-09-23 Thread Michael Van Canneyt
On Sat, 23 Sep 2017, James Richters wrote: 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:$0

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