View Single Post
Old 01-12-2020, 02:49 PM   #908
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,819
Default

No its not drawing anything

Code:
bm = reaper.JS_LICE_CreateBitmap(true, 1, 1)
reaper.JS_LICE_Clear(bm, 0xFFFF0000)
tv = reaper.JS_Window_FindChildByID(reaper.GetMainHwnd(), 0x3E8) -- EVEN CHANGED THIS FROM 1000 SINCE ITS NOT CROSS-PLATFORM
cOK = reaper.JS_Composite(tv, 100, 100, 100, 100, bm, 0, 0, 1, 1)
reaper.JS_Window_InvalidateRect(tv, 100, 100, 200, 200, false) -- EVEN IF THIS IS COMMENTED OUT
Sexan is offline   Reply With Quote