1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-06 00:00:22 +00:00
QB64-PE/source
Matthew Kilgore e810229d11 Fix _RGB32() optional arguments
The new optional arguments for functions broke _RGB32() because it uses
some custom flags ('overloaded' and 'minargs' on the id Type) to control
its parameter passing. You are allowed passing any number from 1 to 4 args
to `func__rgb32` and there are 4 overloaded C++ functions that will get
picked from. This is different from how this typically would work, with
all 4 parameters always passed and an extra argument to specify the
parameters that were passed.

Rather than change `func__rgb32` I simply adjusted the optional argument
logic to account for the flags used by `_RGB32()` - if the `overloaded`
flag is set, then we don't need to add extra `NULL` parameters for any
parameter that wasn't specified in the argument list. Instead we simply
don't emit anything for those.
2023-02-13 00:25:51 -05:00
..
global Context work 2023-01-19 23:41:38 +01:00
ide General refactoring 2023-02-12 19:47:01 +01:00
subs_functions Fix arg count for _SNDNEW and type for _COLORCHOOSERDIALOG 2023-02-06 18:50:03 +05:30
utilities Format source, apply Option _Explicit in tests 2023-02-12 22:38:50 -05:00
.gitignore Don't ignore .bas files in source directory 2022-04-28 17:20:45 -04:00
peLogo.png Step 10: Update remaining stuff 2022-08-12 02:54:12 +02:00
qb64pe.bas Fix _RGB32() optional arguments 2023-02-13 00:25:51 -05:00
qb64pe.ico Step 4: Update Windows icon & resource file 2022-08-10 02:03:12 +02:00
qb64pe.png Step 2: Update Linux icon file 2022-08-10 00:48:56 +02:00