WindowsXP compile target does not work for any source: error in draw-gdi.reds, in function: exec/gui/draw-begin
wesinator opened this issue · comments
Describe the bug
The WindowsXP target of redc does not work for any source.
any source file will give this error:
Target: WindowsXP
Compiling to native code...
*** Compilation Error: left and right argument must be of same type for: <>
*** left: float32!, right: integer!
*** in file: %/C/<winpath>/<user>/<working_dir>/modules/view/backends/windows/draw-gdi.reds
*** in function: exec/gui/draw-begin
*** at line: 651
*** near: [<> dpi-factor 100 [
ratio: (as float32! dpi-factor) / (as float32! 100.0)
GdipScaleWorldTransform graphics ratio ratio 0
ctx/scale-ratio: ratio
]]
To reproduce
Steps to reproduce the behavior:
- calculator example (this is the example I used but the error is the same for any source file).
- compile with
redc -r -t WindowsXP calculator.red
Expected behavior
Compiles an XP compatible binary in the view mode, that does not use the unsupported Windows GetGestureInfo API.
Platform version
Tested on Windows 10 and Windows XP compilation hosts.
red-toolchain-21feb24-58b8f8937
Also, the red REPL seems to be compiled for the Windows target that uses Windows 7+ gesture APIs, which means the binary doesn't load even though it technically would work on XP:
it would make more sense for the red REPL to be compiled with a WindowsXP target (once this bug is fixed), given that the system is already 32-bit only anyway.