From 89c53ac58c86aef1364a34d7d3e0afbf05d13364 Mon Sep 17 00:00:00 2001 From: Leonard Ritter Date: Thu, 11 Sep 2014 13:34:57 +0200 Subject: [PATCH] fixed a type signature error --- example.cpp | 1 + oui.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example.cpp b/example.cpp index b484a96..e9dd816 100644 --- a/example.cpp +++ b/example.cpp @@ -703,6 +703,7 @@ void draw(NVGcontext *vg, float w, float h) { uiSetLayout(0,UI_LEFT|UI_TOP); uiSetMargins(0,600,10,0,0); uiSetSize(0,250,400); + uiSetSelfHandle(root); uiSetHandler(root, roothandler, UI_SCROLL|UI_BUTTON0_DOWN); int col = column(root); diff --git a/oui.h b/oui.h index 52d00a1..8ed3899 100644 --- a/oui.h +++ b/oui.h @@ -750,7 +750,7 @@ struct UIcontext { int extend_item; int last_timestamp; int last_click_timestamp; - int last_click_handle; + UIhandle last_click_handle; int clicks; int count;