CTextButton is clipped incorrectly

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
Posts: 28
Joined: Mon Jun 20, 2016 7:43 am
Location: Hamburg

CTextButton is clipped incorrectly

Post by rhansen »


the CTextButton control is clipped incorrectly on Windows (7 and 10). It is very obvious when you use the VSTGUI live editor, open AGain and zoom in to 500% on the [Send!] button. I marked the clipped areas in the first screenshot (see below).

I can correct this by adding [kNonIntegralMode] in function [CTextButton::draw] like this (see 2nd screenshot below).

Code: Select all

context->setDrawMode (kAntiAliasing | kNonIntegralMode);
But I am not sure if this is the proper way of fixing this. I checked other controls which are almost all affected by this. Can someone verify this? Is this a known behavior?

You do not have the required permissions to view the files attached to this post.

Post Reply