From cbda6166a8b6b4222ec37cb61f531e444b7f31e8 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 19 Dec 2018 20:53:11 +0100 Subject: [PATCH] tform: fix MouseWatcherRegion area calculation Fixes #233 --- panda/src/tform/mouseWatcherRegion.I | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/tform/mouseWatcherRegion.I b/panda/src/tform/mouseWatcherRegion.I index 50dfada487..91ccbc7063 100644 --- a/panda/src/tform/mouseWatcherRegion.I +++ b/panda/src/tform/mouseWatcherRegion.I @@ -17,11 +17,11 @@ INLINE MouseWatcherRegion:: MouseWatcherRegion(const std::string &name, PN_stdfloat left, PN_stdfloat right, PN_stdfloat bottom, PN_stdfloat top) : - Namable(name), - _frame(left, right, bottom, top) + Namable(name) { _sort = 0; _flags = F_active; + set_frame(left, right, bottom, top); } /**