Browse Source

- new constants for splitters

- fixed active rectangle size
pull/1/head
Leonard Ritter 10 years ago
parent
commit
f3b3384016
2 changed files with 5 additions and 2 deletions
  1. +3
    -0
      blendish.h
  2. +2
    -2
      oui.h

+ 3
- 0
blendish.h View File

@@ -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


+ 2
- 2
oui.h View File

@@ -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;
}


Loading…
Cancel
Save