Search found 7 matches

by squarewave
Thu Nov 29, 2018 2:50 am
Forum: VSTGUI
Topic: VST 3.6.11 IDropTarget compile errors on Windows
Replies: 4
Views: 1954

Re: VST 3.6.11 IDropTarget compile errors on Windows

Ah, I got it working in the end, but much better to have the official.

Thanks for quick fix!

/rasmus
by squarewave
Tue Nov 27, 2018 12:10 am
Forum: VSTGUI
Topic: VST 3.6.11 IDropTarget compile errors on Windows
Replies: 4
Views: 1954

Re: VST 3.6.11 IDropTarget compile errors on Windows

Ah. Thanks for that. I had it in one place, removing that cleared up my code. But... Now these lines would never work in /vstgui/vstgui.h : 68 #if !defined (VSTGUI_DISABLE_GLOBAL_NAMESPACE_POLLUTION) || VSTGUI_DISABLE_GLOBAL_NAMESPACE_POLLUTION == 0 using namespace VSTGUI; #endif So that macro needs...
by squarewave
Sat Nov 24, 2018 10:56 pm
Forum: VSTGUI
Topic: VST 3.6.11 IDropTarget compile errors on Windows
Replies: 4
Views: 1954

VST 3.6.11 IDropTarget compile errors on Windows

So, I tried updating to the new VSTGUI version. IDropTarget has name collision with Win32 OLE struct. OLE spams its name into global namespace with no sensible restraints (#if block etc) Normally, one just defines WIN32_MEAN_AND_LEAN to be rid of lots of crud, but D2D drawing headers include oleidl....
by squarewave
Thu Oct 25, 2018 11:42 am
Forum: VSTGUI
Topic: CFrame paint pessimisation [Windows]
Replies: 4
Views: 2192

Re: CFrame paint pessimisation [Windows]

Hi rasmus, as you have seen, VSTGUI is not optimized for redrawing overlapped controls, so avoid it. This is not about overlapping controls, it is about GetRegionData: https://www.abc.se/~re/Stuff/GetRegionData-behavior.png GRD can return up to 4 rects from 2 controls, this means 4 searches for mat...
by squarewave
Tue Oct 09, 2018 10:17 am
Forum: VSTGUI
Topic: CFrame paint pessimisation [Windows]
Replies: 4
Views: 2192

Re: CFrame paint pessimisation [Windows]

To follow up after some more testing, My local fix is simple & crude: Use the BeginPaint bounding rect to redraw and completely skip the GetRegionData rects. This way there is only one search for controls to draw and no double-painting, but still some uncalled-for repaints. Only 2 line changes. In w...
by squarewave
Mon Oct 08, 2018 12:39 am
Forum: VSTGUI
Topic: CFrame paint pessimisation [Windows]
Replies: 4
Views: 2192

CFrame paint pessimisation [Windows]

When there's a patch change in my plug, most controls are updated. Their rects are collected and draw()'s are called. Update rectangles overlap; in a major update 2/3 of rect updates overlap with earlier rects. Many controls are thus repainted multiple times. (I noted this due to semitransparent tex...
by squarewave
Mon Sep 17, 2018 12:43 am
Forum: VSTGUI
Topic: Tooltips not showing in some hosts on Windows..
Replies: 6
Views: 2908

Re: Tooltips not showing in some hosts on Windows..

Tooltips didn't work for me in any host on Windows. 2 changes required (1) Use ti.cbSize = TTTOOLINFO_V1_SIZE instead of sizeof(TOOLINFO) in Win32Frame::initTooltip(), showTooltip() and hideTooltip() The versions just mean that they added first one struct member (lParam), then another (lpReserved) V...