From f3b3384016aca873dc00e68737fc79a46f32f5cd Mon Sep 17 00:00:00 2001 From: Leonard Ritter Date: Fri, 8 Aug 2014 12:37:03 +0200 Subject: [PATCH] - new constants for splitters - fixed active rectangle size --- blendish.h | 3 +++ oui.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/blendish.h b/blendish.h index 3c8c303..a897de6 100644 --- a/blendish.h +++ b/blendish.h @@ -222,6 +222,9 @@ typedef enum BNDcornerFlags { // width of node title arrow click area #define BND_NODE_ARROW_AREA_WIDTH 20 +// size of splitter corner click area +#define BND_SPLITTER_AREA_SIZE 12 + // width of vertical scrollbar #define BND_SCROLLBAR_WIDTH 13 // height of horizontal scrollbar diff --git a/oui.h b/oui.h index baec3bc..3ac8e76 100644 --- a/oui.h +++ b/oui.h @@ -1308,8 +1308,8 @@ int uiFindItem(int item, int x, int y, int ox, int oy) { } // click-through if the item has no handler for input events if (pitem->event_flags & UI_ANY_INPUT) { - rect.x += ox; - rect.y += oy; + rect.x = ox; + rect.y = oy; ui_context->hot_rect = rect; return item; }