From 589d021e1c7680b840fc32359eef88dcf2ba6df7 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 25 Jul 2013 00:59:52 +0200 Subject: [PATCH] Canvas API: access to canvas "desktop". --- Nasal/canvas/api.nas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Nasal/canvas/api.nas b/Nasal/canvas/api.nas index 6d4a68d7d..a08514635 100644 --- a/Nasal/canvas/api.nas +++ b/Nasal/canvas/api.nas @@ -966,6 +966,11 @@ var get = func(arg) return wrapCanvas(canvas_ghost); }; +var getDesktop = func() +{ + return Group.new(_getDesktopGhost()); +}; + # ------------------------------------------------------------------------------ # Show warnings if API used with too old version of FlightGear without Canvas # support (Wrapped in anonymous function do not polute the canvas namespace)