Page 1 of 1

CTextButton is clipped incorrectly

Posted: Thu Apr 20, 2017 9:12 am
by rhansen
Hey,

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?

René
clipped_ctextbutton.PNG