Skip to content
Snippets Groups Projects
Commit 1a839d74 authored by Timur Pocheptsov's avatar Timur Pocheptsov
Browse files

Delete a canvas if the graphics back-end is not TGCocoa.

parent 4e009d32
No related branches found
No related tags found
No related merge requests found
//This tutorial demonstrates how to use radial gradients,
//custom colors, transparency, transparent pads.
//custom colors, transparency.
//Requires ROOT built for OS X with --enable-cocoa.
#include <iostream>
......@@ -90,6 +90,7 @@ void radialgradients()
if (gVirtualX && !gVirtualX->InheritsFrom("TGCocoa")) {
::Error("radialgradients",
"this demo requires OS X and ROOT built with --enable-cocoa");
delete cnv;
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment