TButton with OpenGL.CanvasPreferGL: 1

Dear rooters,
take this macro:

void tbutton() { TCanvas *c = new TCanvas("c", "c", 300, 300); TButton *b = new TButton("tb", "", 0.25, 0.25, 0.75, 0.75); b->SetTextSize(0.9); b->SetTextColor(2); b->Draw(); }
With OpenGL.CanvasPreferGL: 0 the outcome is as expected (see att c.pdf)
with OpenGL.CanvasPreferGL: 1 TAttText methods seem not to work (see c_opengl.c)

c_opengl.pdf (12.4 KB)
c.pdf (12.3 KB)

Hi Otto,

Yes I see this effect … TPaveLabel is fine though…

The Text attributes setting for TButton are done in TButton::PaintModified()
This section is not executed in case of GL … weird.

Hi Otto,

Fixed in the trunk. Thanks for reporting.