View Single Post
Old 10-28-2018, 08:50 AM   #85
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,528
Default

Quote:
Originally Posted by juliansader View Post
Could you post the code, so that we can try to check it?

To shrink or remove previously drawn GDI elements, either REAPER must redraw the underlying window, or if the window is static, you need to draw over your own GDI elements, using the original window content. The original window content can be stored in bitmap 1, combined with the rectangles in bitmap 2, and then blitted to the screen.
Sure
https://stash.reaper.fm/34717/Area51.lua

Try dragging around, final rectangle shape only gets updated when mouse is released.Drawing is unrelated to mouse clicks it only waits to get first coordinate from first mouse down the rest is self updating. Thats why I don't get why everything is fine when mouse is released

Last edited by Sexan; 10-28-2018 at 09:01 AM.
Sexan is offline   Reply With Quote