summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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