CTextButton is clipped incorrectly

A User Interface Toolkit mainly for Audio Plug-Ins (VST, AudioUnit, etc).
rhansen
Posts: 10
Joined: Mon Jun 20, 2016 7:43 am
Location: Hamburg

CTextButton is clipped incorrectly

Postby rhansen » Thu Apr 20, 2017 9:12 am

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
You do not have the required permissions to view the files attached to this post.

Return to “VSTGUI”

Who is online

Users browsing this forum: No registered users and 1 guest