Quote:
Originally Posted by juliansader
He mentioned that he is using the latest "release build", so I'm not sure that he was using a dev build.
In previous versions of ReaScriptAPI, the WDL/swell function StretchBlt was used to blit onto the window, but since stretching doesn't work with Metal, nothing appeared onscreen. In the most recent version of ReaScriptAPI, no stretching is applied if Metal is enabled *and* the bitmap is partly offscreen (as is the case in his example), so the bitmap will appear onscreen -- but the transparency bug means that the bitmaps will be fully opaque.
|
Oh yes, you are right! Sorry!
Another question regarding transparency/alpha between Windows and macOS. When using JS_LICE_Clear with a color and then JS_Composite to draw over the trackview, in order to get the same visual color and transparency, different values must be entered for Windows and macOS.
Code:
red, green, blue, alpha = 255, 255, 127, 35
wa = alpha/255 -- Windows alpha
OSXcolor_trackview = ((blue&0xFF)|((green&0xFF)<<8)|((red&0xFF)<<16)|((alpha&0xFF)<<24))
WINcolor_trackview = (((math.floor(blue*wa))&0xFF)|(((math.floor(green*wa))&0xFF)<<8)|(((math.floor(red*wa))&0xFF)<<16)|(0x01<<24))
OSXcolor_trackview = string.format("0x%08X", OSXcolor_trackview)
WINcolor_trackview = string.format("0x%08X", WINcolor_trackview)
Code:
macOS color: 0x23FFFF7F
Windows color: 0x01232311
Is this expected or is it a bug?