summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-06-13 16:49:31 +0000
committerIan C <ianc@noddybox.co.uk>2020-06-13 16:49:31 +0000
commitfeaf4c4a99c6f66eaa22cb62440dc4be1377e3ad (patch)
treeb721d1331b75a05895f16b4f3e681b803d1c7be5
parent89a5e41d2bffe9322029168c74d973be853a3279 (diff)
Added call to get the gadget scale factor for a canvas. Doesn't seem to work.HEADmaster
-rw-r--r--mwidget.mod/mwidget.bmx9
1 files changed, 8 insertions, 1 deletions
diff --git a/mwidget.mod/mwidget.bmx b/mwidget.mod/mwidget.bmx
index f2858e0..1770790 100644
--- a/mwidget.mod/mwidget.bmx
+++ b/mwidget.mod/mwidget.bmx
@@ -2355,6 +2355,13 @@ Type TMCanvas Extends TMWidget
Method SetupGraphics()
SetGraphics(CanvasGraphics(gadget))
End Method
+
+ Rem
+ bbdoc: Get the underlaying gadget scale factor
+ EndRem
+ Method ScaleFactor:Int()
+ Return GadgetScaleFactor(gadget)
+ End Method
Rem
bbdoc: Called when the canvas should be redrawn.
@@ -2785,7 +2792,7 @@ Type Static
Next
If Not handled
- If e.id = 259
+ If e.id = EVENT_APPTERMINATE
If top
top.Close()
Else